Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
md_u.h File Reference

Go to the source code of this file.

Data Structures

struct  mdu_version_s
 
struct  mdu_array_info_s
 
struct  mdu_disk_info_s
 
struct  mdu_start_info_s
 
struct  mdu_bitmap_file_s
 
struct  mdu_param_s
 

Macros

#define MD_MAJOR_VERSION   0
 
#define MD_MINOR_VERSION   90
 
#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)
 
#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)
 
#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)
 
#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)
 
#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)
 
#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
 
#define LEVEL_MULTIPATH   (-4)
 
#define LEVEL_LINEAR   (-1)
 
#define LEVEL_FAULTY   (-5)
 
#define LEVEL_NONE   (-1000000)
 

Typedefs

typedef struct mdu_version_s mdu_version_t
 
typedef struct mdu_array_info_s mdu_array_info_t
 
typedef struct mdu_disk_info_s mdu_disk_info_t
 
typedef struct mdu_start_info_s mdu_start_info_t
 
typedef struct mdu_bitmap_file_s mdu_bitmap_file_t
 
typedef struct mdu_param_s mdu_param_t
 

Macro Definition Documentation

#define ADD_NEW_DISK   _IOW (MD_MAJOR, 0x21, mdu_disk_info_t)

Definition at line 48 of file md_u.h.

#define CLEAR_ARRAY   _IO (MD_MAJOR, 0x20)

Definition at line 47 of file md_u.h.

#define GET_ARRAY_INFO   _IOR (MD_MAJOR, 0x11, mdu_array_info_t)

Definition at line 40 of file md_u.h.

#define GET_BITMAP_FILE   _IOR (MD_MAJOR, 0x15, mdu_bitmap_file_t)

Definition at line 44 of file md_u.h.

#define GET_DISK_INFO   _IOR (MD_MAJOR, 0x12, mdu_disk_info_t)

Definition at line 41 of file md_u.h.

#define HOT_ADD_DISK   _IO (MD_MAJOR, 0x28)

Definition at line 55 of file md_u.h.

#define HOT_GENERATE_ERROR   _IO (MD_MAJOR, 0x2a)

Definition at line 57 of file md_u.h.

#define HOT_REMOVE_DISK   _IO (MD_MAJOR, 0x22)

Definition at line 49 of file md_u.h.

#define LEVEL_FAULTY   (-5)

Definition at line 112 of file md_u.h.

#define LEVEL_LINEAR   (-1)

Definition at line 111 of file md_u.h.

#define LEVEL_MULTIPATH   (-4)

Definition at line 110 of file md_u.h.

#define LEVEL_NONE   (-1000000)

Definition at line 118 of file md_u.h.

#define MD_MAJOR_VERSION   0

Definition at line 23 of file md_u.h.

#define MD_MINOR_VERSION   90

Definition at line 24 of file md_u.h.

#define MD_PATCHLEVEL_VERSION   3

Definition at line 34 of file md_u.h.

#define MdpMinorShift   6

Definition at line 68 of file md_u.h.

#define PRINT_RAID_DEBUG   _IO (MD_MAJOR, 0x13)

Definition at line 42 of file md_u.h.

#define PROTECT_ARRAY   _IO (MD_MAJOR, 0x27)

Definition at line 54 of file md_u.h.

#define RAID_AUTORUN   _IO (MD_MAJOR, 0x14)

Definition at line 43 of file md_u.h.

#define RAID_VERSION   _IOR (MD_MAJOR, 0x10, mdu_version_t)

Definition at line 39 of file md_u.h.

#define RESTART_ARRAY_RW   _IO (MD_MAJOR, 0x34)

Definition at line 65 of file md_u.h.

#define RUN_ARRAY   _IOW (MD_MAJOR, 0x30, mdu_param_t)

Definition at line 61 of file md_u.h.

#define SET_ARRAY_INFO   _IOW (MD_MAJOR, 0x23, mdu_array_info_t)

Definition at line 50 of file md_u.h.

#define SET_BITMAP_FILE   _IOW (MD_MAJOR, 0x2b, int)

Definition at line 58 of file md_u.h.

#define SET_DISK_FAULTY   _IO (MD_MAJOR, 0x29)

Definition at line 56 of file md_u.h.

#define SET_DISK_INFO   _IO (MD_MAJOR, 0x24)

Definition at line 51 of file md_u.h.

#define STOP_ARRAY   _IO (MD_MAJOR, 0x32)

Definition at line 63 of file md_u.h.

#define STOP_ARRAY_RO   _IO (MD_MAJOR, 0x33)

Definition at line 64 of file md_u.h.

#define UNPROTECT_ARRAY   _IO (MD_MAJOR, 0x26)

Definition at line 53 of file md_u.h.

#define WRITE_RAID_INFO   _IO (MD_MAJOR, 0x25)

Definition at line 52 of file md_u.h.

Typedef Documentation