Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations
dm-ioctl.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  dm_ioctl
 
struct  dm_target_spec
 
struct  dm_target_deps
 
struct  dm_name_list
 
struct  dm_target_versions
 
struct  dm_target_msg
 

Macros

#define DM_DIR   "mapper" /* Slashes not supported */
 
#define DM_CONTROL_NODE   "control"
 
#define DM_MAX_TYPE_NAME   16
 
#define DM_NAME_LEN   128
 
#define DM_UUID_LEN   129
 
#define DM_IOCTL   0xfd
 
#define DM_VERSION   _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl)
 
#define DM_REMOVE_ALL   _IOWR(DM_IOCTL, DM_REMOVE_ALL_CMD, struct dm_ioctl)
 
#define DM_LIST_DEVICES   _IOWR(DM_IOCTL, DM_LIST_DEVICES_CMD, struct dm_ioctl)
 
#define DM_DEV_CREATE   _IOWR(DM_IOCTL, DM_DEV_CREATE_CMD, struct dm_ioctl)
 
#define DM_DEV_REMOVE   _IOWR(DM_IOCTL, DM_DEV_REMOVE_CMD, struct dm_ioctl)
 
#define DM_DEV_RENAME   _IOWR(DM_IOCTL, DM_DEV_RENAME_CMD, struct dm_ioctl)
 
#define DM_DEV_SUSPEND   _IOWR(DM_IOCTL, DM_DEV_SUSPEND_CMD, struct dm_ioctl)
 
#define DM_DEV_STATUS   _IOWR(DM_IOCTL, DM_DEV_STATUS_CMD, struct dm_ioctl)
 
#define DM_DEV_WAIT   _IOWR(DM_IOCTL, DM_DEV_WAIT_CMD, struct dm_ioctl)
 
#define DM_TABLE_LOAD   _IOWR(DM_IOCTL, DM_TABLE_LOAD_CMD, struct dm_ioctl)
 
#define DM_TABLE_CLEAR   _IOWR(DM_IOCTL, DM_TABLE_CLEAR_CMD, struct dm_ioctl)
 
#define DM_TABLE_DEPS   _IOWR(DM_IOCTL, DM_TABLE_DEPS_CMD, struct dm_ioctl)
 
#define DM_TABLE_STATUS   _IOWR(DM_IOCTL, DM_TABLE_STATUS_CMD, struct dm_ioctl)
 
#define DM_LIST_VERSIONS   _IOWR(DM_IOCTL, DM_LIST_VERSIONS_CMD, struct dm_ioctl)
 
#define DM_TARGET_MSG   _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl)
 
#define DM_DEV_SET_GEOMETRY   _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)
 
#define DM_VERSION_MAJOR   4
 
#define DM_VERSION_MINOR   23
 
#define DM_VERSION_PATCHLEVEL   0
 
#define DM_VERSION_EXTRA   "-ioctl (2012-07-25)"
 
#define DM_READONLY_FLAG   (1 << 0) /* In/Out */
 
#define DM_SUSPEND_FLAG   (1 << 1) /* In/Out */
 
#define DM_PERSISTENT_DEV_FLAG   (1 << 3) /* In */
 
#define DM_STATUS_TABLE_FLAG   (1 << 4) /* In */
 
#define DM_ACTIVE_PRESENT_FLAG   (1 << 5) /* Out */
 
#define DM_INACTIVE_PRESENT_FLAG   (1 << 6) /* Out */
 
#define DM_BUFFER_FULL_FLAG   (1 << 8) /* Out */
 
#define DM_SKIP_BDGET_FLAG   (1 << 9) /* In */
 
#define DM_SKIP_LOCKFS_FLAG   (1 << 10) /* In */
 
#define DM_NOFLUSH_FLAG   (1 << 11) /* In */
 
#define DM_QUERY_INACTIVE_TABLE_FLAG   (1 << 12) /* In */
 
#define DM_UEVENT_GENERATED_FLAG   (1 << 13) /* Out */
 
#define DM_UUID_FLAG   (1 << 14) /* In */
 
#define DM_SECURE_DATA_FLAG   (1 << 15) /* In */
 

Enumerations

enum  {
  DM_VERSION_CMD = 0, DM_REMOVE_ALL_CMD, DM_LIST_DEVICES_CMD, DM_DEV_CREATE_CMD,
  DM_DEV_REMOVE_CMD, DM_DEV_RENAME_CMD, DM_DEV_SUSPEND_CMD, DM_DEV_STATUS_CMD,
  DM_DEV_WAIT_CMD, DM_TABLE_LOAD_CMD, DM_TABLE_CLEAR_CMD, DM_TABLE_DEPS_CMD,
  DM_TABLE_STATUS_CMD, DM_LIST_VERSIONS_CMD, DM_TARGET_MSG_CMD, DM_DEV_SET_GEOMETRY_CMD
}
 

Macro Definition Documentation

#define DM_ACTIVE_PRESENT_FLAG   (1 << 5) /* Out */

Definition at line 289 of file dm-ioctl.h.

#define DM_BUFFER_FULL_FLAG   (1 << 8) /* Out */

Definition at line 296 of file dm-ioctl.h.

#define DM_CONTROL_NODE   "control"

Definition at line 14 of file dm-ioctl.h.

#define DM_DEV_CREATE   _IOWR(DM_IOCTL, DM_DEV_CREATE_CMD, struct dm_ioctl)

Definition at line 252 of file dm-ioctl.h.

#define DM_DEV_REMOVE   _IOWR(DM_IOCTL, DM_DEV_REMOVE_CMD, struct dm_ioctl)

Definition at line 253 of file dm-ioctl.h.

#define DM_DEV_RENAME   _IOWR(DM_IOCTL, DM_DEV_RENAME_CMD, struct dm_ioctl)

Definition at line 254 of file dm-ioctl.h.

#define DM_DEV_SET_GEOMETRY   _IOWR(DM_IOCTL, DM_DEV_SET_GEOMETRY_CMD, struct dm_ioctl)

Definition at line 267 of file dm-ioctl.h.

#define DM_DEV_STATUS   _IOWR(DM_IOCTL, DM_DEV_STATUS_CMD, struct dm_ioctl)

Definition at line 256 of file dm-ioctl.h.

#define DM_DEV_SUSPEND   _IOWR(DM_IOCTL, DM_DEV_SUSPEND_CMD, struct dm_ioctl)

Definition at line 255 of file dm-ioctl.h.

#define DM_DEV_WAIT   _IOWR(DM_IOCTL, DM_DEV_WAIT_CMD, struct dm_ioctl)

Definition at line 257 of file dm-ioctl.h.

#define DM_DIR   "mapper" /* Slashes not supported */

Definition at line 13 of file dm-ioctl.h.

#define DM_INACTIVE_PRESENT_FLAG   (1 << 6) /* Out */

Definition at line 290 of file dm-ioctl.h.

#define DM_IOCTL   0xfd

Definition at line 246 of file dm-ioctl.h.

#define DM_LIST_DEVICES   _IOWR(DM_IOCTL, DM_LIST_DEVICES_CMD, struct dm_ioctl)

Definition at line 250 of file dm-ioctl.h.

#define DM_LIST_VERSIONS   _IOWR(DM_IOCTL, DM_LIST_VERSIONS_CMD, struct dm_ioctl)

Definition at line 264 of file dm-ioctl.h.

#define DM_MAX_TYPE_NAME   16

Definition at line 15 of file dm-ioctl.h.

#define DM_NAME_LEN   128

Definition at line 16 of file dm-ioctl.h.

#define DM_NOFLUSH_FLAG   (1 << 11) /* In */

Definition at line 313 of file dm-ioctl.h.

#define DM_PERSISTENT_DEV_FLAG   (1 << 3) /* In */

Definition at line 277 of file dm-ioctl.h.

#define DM_QUERY_INACTIVE_TABLE_FLAG   (1 << 12) /* In */

Definition at line 320 of file dm-ioctl.h.

#define DM_READONLY_FLAG   (1 << 0) /* In/Out */

Definition at line 275 of file dm-ioctl.h.

#define DM_REMOVE_ALL   _IOWR(DM_IOCTL, DM_REMOVE_ALL_CMD, struct dm_ioctl)

Definition at line 249 of file dm-ioctl.h.

#define DM_SECURE_DATA_FLAG   (1 << 15) /* In */

Definition at line 337 of file dm-ioctl.h.

#define DM_SKIP_BDGET_FLAG   (1 << 9) /* In */

Definition at line 301 of file dm-ioctl.h.

#define DM_SKIP_LOCKFS_FLAG   (1 << 10) /* In */

Definition at line 306 of file dm-ioctl.h.

#define DM_STATUS_TABLE_FLAG   (1 << 4) /* In */

Definition at line 283 of file dm-ioctl.h.

#define DM_SUSPEND_FLAG   (1 << 1) /* In/Out */

Definition at line 276 of file dm-ioctl.h.

#define DM_TABLE_CLEAR   _IOWR(DM_IOCTL, DM_TABLE_CLEAR_CMD, struct dm_ioctl)

Definition at line 260 of file dm-ioctl.h.

#define DM_TABLE_DEPS   _IOWR(DM_IOCTL, DM_TABLE_DEPS_CMD, struct dm_ioctl)

Definition at line 261 of file dm-ioctl.h.

#define DM_TABLE_LOAD   _IOWR(DM_IOCTL, DM_TABLE_LOAD_CMD, struct dm_ioctl)

Definition at line 259 of file dm-ioctl.h.

#define DM_TABLE_STATUS   _IOWR(DM_IOCTL, DM_TABLE_STATUS_CMD, struct dm_ioctl)

Definition at line 262 of file dm-ioctl.h.

#define DM_TARGET_MSG   _IOWR(DM_IOCTL, DM_TARGET_MSG_CMD, struct dm_ioctl)

Definition at line 266 of file dm-ioctl.h.

#define DM_UEVENT_GENERATED_FLAG   (1 << 13) /* Out */

Definition at line 325 of file dm-ioctl.h.

#define DM_UUID_FLAG   (1 << 14) /* In */

Definition at line 331 of file dm-ioctl.h.

#define DM_UUID_LEN   129

Definition at line 17 of file dm-ioctl.h.

#define DM_VERSION   _IOWR(DM_IOCTL, DM_VERSION_CMD, struct dm_ioctl)

Definition at line 248 of file dm-ioctl.h.

#define DM_VERSION_EXTRA   "-ioctl (2012-07-25)"

Definition at line 272 of file dm-ioctl.h.

#define DM_VERSION_MAJOR   4

Definition at line 269 of file dm-ioctl.h.

#define DM_VERSION_MINOR   23

Definition at line 270 of file dm-ioctl.h.

#define DM_VERSION_PATCHLEVEL   0

Definition at line 271 of file dm-ioctl.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
DM_VERSION_CMD 
DM_REMOVE_ALL_CMD 
DM_LIST_DEVICES_CMD 
DM_DEV_CREATE_CMD 
DM_DEV_REMOVE_CMD 
DM_DEV_RENAME_CMD 
DM_DEV_SUSPEND_CMD 
DM_DEV_STATUS_CMD 
DM_DEV_WAIT_CMD 
DM_TABLE_LOAD_CMD 
DM_TABLE_CLEAR_CMD 
DM_TABLE_DEPS_CMD 
DM_TABLE_STATUS_CMD 
DM_LIST_VERSIONS_CMD 
DM_TARGET_MSG_CMD 
DM_DEV_SET_GEOMETRY_CMD 

Definition at line 220 of file dm-ioctl.h.