diff options
| author | Ben Cheng <bccheng@google.com> | 2013-10-16 23:17:52 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-10-16 23:17:52 +0000 |
| commit | 3fdd6b83379f46d2ae78f376b3630f9d481d6dbb (patch) | |
| tree | a26009dff2011d1fd720440c7b2c67178171714c /libc/kernel/uapi/linux/raid/md_u.h | |
| parent | bffe261a1fcb2099e2188e2e4ca65209b64bc75a (diff) | |
| parent | 655a7c081f83b8351ed5f11a6c6accd9458293a8 (diff) | |
| download | bionic-3fdd6b83379f46d2ae78f376b3630f9d481d6dbb.zip bionic-3fdd6b83379f46d2ae78f376b3630f9d481d6dbb.tar.gz bionic-3fdd6b83379f46d2ae78f376b3630f9d481d6dbb.tar.bz2 | |
Merge "Add processed uapi kernel headers (common and aarch64-specific)"
Diffstat (limited to 'libc/kernel/uapi/linux/raid/md_u.h')
| -rw-r--r-- | libc/kernel/uapi/linux/raid/md_u.h | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/libc/kernel/uapi/linux/raid/md_u.h b/libc/kernel/uapi/linux/raid/md_u.h new file mode 100644 index 0000000..9402c77 --- /dev/null +++ b/libc/kernel/uapi/linux/raid/md_u.h @@ -0,0 +1,119 @@ +/**************************************************************************** + **************************************************************************** + *** + *** This header was automatically generated from a Linux kernel header + *** of the same name, to make information necessary for userspace to + *** call into the kernel available to libc. It contains only constants, + *** structures, and macros generated from the original header, and thus, + *** contains no copyrightable information. + *** + *** To edit the content of this header, modify the corresponding + *** source file (e.g. under external/kernel-headers/original/) then + *** run bionic/libc/kernel/tools/update_all.py + *** + *** Any manual change here will be lost the next time this script will + *** be run. You've been warned! + *** + **************************************************************************** + ****************************************************************************/ +#ifndef _UAPI_MD_U_H +#define _UAPI_MD_U_H +#define MD_MAJOR_VERSION 0 +#define MD_MINOR_VERSION 90 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define MD_PATCHLEVEL_VERSION 3 +#define RAID_VERSION _IOR (MD_MAJOR, 0x10, mdu_version_t) +#define GET_ARRAY_INFO _IOR (MD_MAJOR, 0x11, mdu_array_info_t) +#define GET_DISK_INFO _IOR (MD_MAJOR, 0x12, mdu_disk_info_t) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define PRINT_RAID_DEBUG _IO (MD_MAJOR, 0x13) +#define RAID_AUTORUN _IO (MD_MAJOR, 0x14) +#define GET_BITMAP_FILE _IOR (MD_MAJOR, 0x15, mdu_bitmap_file_t) +#define CLEAR_ARRAY _IO (MD_MAJOR, 0x20) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define ADD_NEW_DISK _IOW (MD_MAJOR, 0x21, mdu_disk_info_t) +#define HOT_REMOVE_DISK _IO (MD_MAJOR, 0x22) +#define SET_ARRAY_INFO _IOW (MD_MAJOR, 0x23, mdu_array_info_t) +#define SET_DISK_INFO _IO (MD_MAJOR, 0x24) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define WRITE_RAID_INFO _IO (MD_MAJOR, 0x25) +#define UNPROTECT_ARRAY _IO (MD_MAJOR, 0x26) +#define PROTECT_ARRAY _IO (MD_MAJOR, 0x27) +#define HOT_ADD_DISK _IO (MD_MAJOR, 0x28) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define SET_DISK_FAULTY _IO (MD_MAJOR, 0x29) +#define HOT_GENERATE_ERROR _IO (MD_MAJOR, 0x2a) +#define SET_BITMAP_FILE _IOW (MD_MAJOR, 0x2b, int) +#define RUN_ARRAY _IOW (MD_MAJOR, 0x30, mdu_param_t) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define STOP_ARRAY _IO (MD_MAJOR, 0x32) +#define STOP_ARRAY_RO _IO (MD_MAJOR, 0x33) +#define RESTART_ARRAY_RW _IO (MD_MAJOR, 0x34) +#define MdpMinorShift 6 +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +typedef struct mdu_version_s { + int major; + int minor; + int patchlevel; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +} mdu_version_t; +typedef struct mdu_array_info_s { + int major_version; + int minor_version; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int patch_version; + int ctime; + int level; + int size; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int nr_disks; + int raid_disks; + int md_minor; + int not_persistent; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int utime; + int state; + int active_disks; + int working_disks; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int failed_disks; + int spare_disks; + int layout; + int chunk_size; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +} mdu_array_info_t; +#define LEVEL_MULTIPATH (-4) +#define LEVEL_LINEAR (-1) +#define LEVEL_FAULTY (-5) +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#define LEVEL_NONE (-1000000) +typedef struct mdu_disk_info_s { + int number; + int major; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int minor; + int raid_disk; + int state; +} mdu_disk_info_t; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +typedef struct mdu_start_info_s { + int major; + int minor; + int raid_disk; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int state; +} mdu_start_info_t; +typedef struct mdu_bitmap_file_s +{ +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + char pathname[4096]; +} mdu_bitmap_file_t; +typedef struct mdu_param_s +{ +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ + int personality; + int chunk_size; + int max_fault; +} mdu_param_t; +/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ +#endif |
