diff options
author | phk <phk@FreeBSD.org> | 2003-01-27 07:54:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-01-27 07:54:59 +0000 |
commit | 62ade07c0f030962ce8806bcf1b8e0f0a0a4e965 (patch) | |
tree | bf956916ab0f219a87928b46c908e37d20ad8b60 | |
parent | 29dbde6d3caa85ddb2740feeaa69026a03e98a8a (diff) | |
download | FreeBSD-src-62ade07c0f030962ce8806bcf1b8e0f0a0a4e965.zip FreeBSD-src-62ade07c0f030962ce8806bcf1b8e0f0a0a4e965.tar.gz |
Add an ioctl to return the unit numbers of the configured md devices.
-rw-r--r-- | sys/sys/mdioctl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/mdioctl.h b/sys/sys/mdioctl.h index c311cca..15a70e1 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 */ |