mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +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
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