mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 04:37:22 +00:00
Kernel: Add STORAGE_DEVICE_GET_SIZE ioctl request
This ioctl request makes it possible to get the size of a storage device that has not yet been mounted.
This commit is contained in:
parent
88eb7a634f
commit
3b089032f4
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/Granddave
Commit: 3b089032f4
Pull-request: https://github.com/SerenityOS/serenity/pull/10401
Reviewed-by: https://github.com/supercomputer7
3 changed files with 20 additions and 1 deletions
|
@ -50,6 +50,9 @@ public:
|
|||
|
||||
virtual CommandSet command_set() const = 0;
|
||||
|
||||
// ^File
|
||||
virtual KResult ioctl(OpenFileDescription&, unsigned request, Userspace<void*> arg) final;
|
||||
|
||||
protected:
|
||||
StorageDevice(int, int, size_t, u64, NonnullOwnPtr<KString>);
|
||||
// ^DiskDevice
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue