aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-01-27 07:54:59 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-01-27 07:54:59 +0000
commitb6532aa9a5f1835407483d45b113a1428b4429a3 (patch)
treebf956916ab0f219a87928b46c908e37d20ad8b60 /sys/sys
parentc57bc2b10ee7e8b6023271a0c576922c8d6b5cfa (diff)
downloadsrc-b6532aa9a5f1835407483d45b113a1428b4429a3.tar.gz
src-b6532aa9a5f1835407483d45b113a1428b4429a3.zip
Add an ioctl to return the unit numbers of the configured md devices.
Notes
Notes: svn path=/head/; revision=109928
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/mdioctl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h
index c311ccaaab36..15a70e138def 100644
--- a/sys/sys/mdioctl.h
+++ b/sys/sys/mdioctl.h
@@ -53,6 +53,7 @@ enum md_types {MD_MALLOC, MD_PRELOAD, MD_VNODE, MD_SWAP};
* Ioctl definitions for memory disk pseudo-device.
*/
+#define MDNPAD 100
struct md_ioctl {
unsigned md_version; /* Structure layout version */
unsigned md_unit; /* unit number */
@@ -61,7 +62,7 @@ struct md_ioctl {
unsigned md_size; /* size of disk in DEV_BSIZE units */
unsigned md_options; /* options */
u_int64_t md_base; /* base address */
- int pad[100]; /* padding for future ideas */
+ int md_pad[MDNPAD]; /* padding for future ideas */
};
#define MD_NAME "md"
@@ -78,6 +79,7 @@ struct md_ioctl {
#define MDIOCATTACH _IOWR('m', 0, struct md_ioctl) /* attach disk */
#define MDIOCDETACH _IOWR('m', 1, struct md_ioctl) /* detach disk */
#define MDIOCQUERY _IOWR('m', 2, struct md_ioctl) /* query status */
+#define MDIOCLIST _IOWR('m', 3, struct md_ioctl) /* query status */
#define MD_CLUSTER 0x01 /* Don't cluster */
#define MD_RESERVE 0x02 /* Pre-reserve swap */