summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorDavid Isaksson <davidisaksson93@gmail.com>2021-10-08 22:20:26 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-09 12:06:47 +0200
commit3b089032f4bacbfad8e8d15f13903e1a93d44847 (patch)
tree17e88d5b9ef2e57a4b3a974fd4ce41d9de3f5ad9 /Userland/Libraries/LibC
parent88eb7a634f5563fa9795fc6f450e13e86d97dc00 (diff)
downloadserenity-3b089032f4bacbfad8e8d15f13903e1a93d44847.zip
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.
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/sys/ioctl_numbers.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/sys/ioctl_numbers.h b/Userland/Libraries/LibC/sys/ioctl_numbers.h
index 577e912ecb..1fa706f02f 100644
--- a/Userland/Libraries/LibC/sys/ioctl_numbers.h
+++ b/Userland/Libraries/LibC/sys/ioctl_numbers.h
@@ -88,7 +88,8 @@ enum IOCtlNumber {
KCOV_ENABLE,
KCOV_DISABLE,
SOUNDCARD_IOCTL_SET_SAMPLE_RATE,
- SOUNDCARD_IOCTL_GET_SAMPLE_RATE
+ SOUNDCARD_IOCTL_GET_SAMPLE_RATE,
+ STORAGE_DEVICE_GET_SIZE,
};
#define TIOCGPGRP TIOCGPGRP
@@ -132,3 +133,4 @@ enum IOCtlNumber {
#define FIONREAD FIONREAD
#define SOUNDCARD_IOCTL_SET_SAMPLE_RATE SOUNDCARD_IOCTL_SET_SAMPLE_RATE
#define SOUNDCARD_IOCTL_GET_SAMPLE_RATE SOUNDCARD_IOCTL_GET_SAMPLE_RATE
+#define STORAGE_DEVICE_GET_SIZE STORAGE_DEVICE_GET_SIZE