Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | map_info |
struct | dm_dev |
struct | target_type |
struct | dm_target |
struct | dm_target_callbacks |
struct | dm_arg_set |
struct | dm_arg |
Enumerations | |
enum | status_type_t { STATUSTYPE_INFO, STATUSTYPE_TABLE } |
#define DM_ANY_MINOR (-1) |
Definition at line 298 of file device-mapper.h.
Definition at line 502 of file device-mapper.h.
Definition at line 487 of file device-mapper.h.
#define DM_ENDIO_INCOMPLETE 1 |
Definition at line 474 of file device-mapper.h.
#define DM_ENDIO_REQUEUE 2 |
Definition at line 475 of file device-mapper.h.
#define DM_MAPIO_REMAPPED 1 |
Definition at line 481 of file device-mapper.h.
#define DM_MAPIO_REQUEUE DM_ENDIO_REQUEUE |
Definition at line 482 of file device-mapper.h.
#define DM_MAPIO_SUBMITTED 0 |
Definition at line 480 of file device-mapper.h.
#define DM_NAME "device-mapper" |
Definition at line 412 of file device-mapper.h.
#define dm_ratelimit | ( | ) | 0 |
Definition at line 419 of file device-mapper.h.
Definition at line 500 of file device-mapper.h.
#define dm_sector_div_up | ( | n, | |
sz | |||
) |
#define DM_TARGET_ALWAYS_WRITEABLE 0x00000002 |
Definition at line 170 of file device-mapper.h.
#define dm_target_always_writeable | ( | type | ) | ((type)->features & DM_TARGET_ALWAYS_WRITEABLE) |
Definition at line 171 of file device-mapper.h.
#define DM_TARGET_IMMUTABLE 0x00000004 |
Definition at line 178 of file device-mapper.h.
#define dm_target_is_immutable | ( | type | ) | ((type)->features & DM_TARGET_IMMUTABLE) |
Definition at line 179 of file device-mapper.h.
#define dm_target_needs_singleton | ( | type | ) | ((type)->features & DM_TARGET_SINGLETON) |
Definition at line 165 of file device-mapper.h.
Definition at line 509 of file device-mapper.h.
#define DM_TARGET_SINGLETON 0x00000001 |
Definition at line 164 of file device-mapper.h.
Definition at line 422 of file device-mapper.h.
#define DMDEBUG | ( | f, | |
arg... | |||
) | do {} while (0) |
Definition at line 462 of file device-mapper.h.
#define DMDEBUG_LIMIT | ( | f, | |
arg... | |||
) | do {} while (0) |
Definition at line 463 of file device-mapper.h.
#define DMEMIT | ( | x... | ) |
Definition at line 466 of file device-mapper.h.
Definition at line 425 of file device-mapper.h.
#define DMERR_LIMIT | ( | f, | |
arg... | |||
) |
Definition at line 427 of file device-mapper.h.
Definition at line 443 of file device-mapper.h.
#define DMINFO_LIMIT | ( | f, | |
arg... | |||
) |
Definition at line 445 of file device-mapper.h.
#define DMWARN | ( | f, | |
arg... | |||
) | printk(KERN_WARNING DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) |
Definition at line 434 of file device-mapper.h.
#define DMWARN_LIMIT | ( | f, | |
arg... | |||
) |
Definition at line 436 of file device-mapper.h.
#define SECTOR_SHIFT 9 |
Definition at line 469 of file device-mapper.h.
Definition at line 102 of file device-mapper.h.
Definition at line 33 of file device-mapper.h.
Definition at line 40 of file device-mapper.h.
typedef int(* dm_endio_fn)(struct dm_target *ti, struct bio *bio, int error, union map_info *map_context) |
Definition at line 62 of file device-mapper.h.
Definition at line 94 of file device-mapper.h.
Definition at line 79 of file device-mapper.h.
typedef int(* dm_iterate_devices_fn)(struct dm_target *ti, iterate_devices_callout_fn fn, void *data) |
Definition at line 90 of file device-mapper.h.
Definition at line 49 of file device-mapper.h.
typedef int(* dm_map_request_fn)(struct dm_target *ti, struct request *clone, union map_info *map_context) |
Definition at line 51 of file device-mapper.h.
typedef int(* dm_merge_fn)(struct dm_target *ti, struct bvec_merge_data *bvm, struct bio_vec *biovec, int max_size) |
Definition at line 82 of file device-mapper.h.
Definition at line 77 of file device-mapper.h.
Definition at line 70 of file device-mapper.h.
Definition at line 71 of file device-mapper.h.
Definition at line 69 of file device-mapper.h.
typedef int(* dm_request_endio_fn)(struct dm_target *ti, struct request *clone, int error, union map_info *map_context) |
Definition at line 65 of file device-mapper.h.
Definition at line 72 of file device-mapper.h.
typedef int(* dm_status_fn)(struct dm_target *ti, status_type_t status_type, unsigned status_flags, char *result, unsigned maxlen) |
Definition at line 74 of file device-mapper.h.
typedef int(* iterate_devices_callout_fn)(struct dm_target *ti, struct dm_dev *dev, sector_t start, sector_t len, void *data) |
Definition at line 85 of file device-mapper.h.
enum status_type_t |
Definition at line 21 of file device-mapper.h.
void dm_consume_args | ( | struct dm_arg_set * | as, |
unsigned | num_args | ||
) |
Definition at line 888 of file dm-table.c.
int dm_copy_name_and_uuid | ( | struct mapped_device * | md, |
char * | name, | ||
char * | uuid | ||
) |
Definition at line 1761 of file dm-ioctl.c.
|
read |
void dm_get | ( | struct mapped_device * | md | ) |
int dm_get_device | ( | struct dm_target * | ti, |
const char * | path, | ||
fmode_t | mode, | ||
struct dm_dev ** | result | ||
) |
Definition at line 458 of file dm-table.c.
uint32_t dm_get_event_nr | ( | struct mapped_device * | md | ) |
int dm_get_geometry | ( | struct mapped_device * | md, |
struct hd_geometry * | geo | ||
) |
|
read |
|
read |
void* dm_get_mdptr | ( | struct mapped_device * | md | ) |
uint32_t dm_next_uevent_seq | ( | struct mapped_device * | md | ) |
void dm_put | ( | struct mapped_device * | md | ) |
Definition at line 555 of file dm-table.c.
int dm_read_arg | ( | struct dm_arg * | arg, |
struct dm_arg_set * | arg_set, | ||
unsigned * | value, | ||
char ** | error | ||
) |
Definition at line 859 of file dm-table.c.
int dm_read_arg_group | ( | struct dm_arg * | arg, |
struct dm_arg_set * | arg_set, | ||
unsigned * | num_args, | ||
char ** | error | ||
) |
Definition at line 866 of file dm-table.c.
int dm_register_target | ( | struct target_type * | t | ) |
Definition at line 83 of file dm-target.c.
int dm_resume | ( | struct mapped_device * | md | ) |
int dm_set_device_limits | ( | struct dm_target * | ti, |
struct dm_dev * | dev, | ||
sector_t | start, | ||
sector_t | len, | ||
void * | data | ||
) |
Definition at line 516 of file dm-table.c.
int dm_set_geometry | ( | struct mapped_device * | md, |
struct hd_geometry * | geo | ||
) |
int __must_check dm_set_target_max_io_len | ( | struct dm_target * | ti, |
sector_t | len | ||
) |
const char* dm_shift_arg | ( | struct dm_arg_set * | as | ) |
Definition at line 873 of file dm-table.c.
int dm_suspend | ( | struct mapped_device * | md, |
unsigned | suspend_flags | ||
) |
int dm_table_add_target | ( | struct dm_table * | t, |
const char * | type, | ||
sector_t | start, | ||
sector_t | len, | ||
char * | params | ||
) |
Definition at line 738 of file dm-table.c.
void dm_table_add_target_callbacks | ( | struct dm_table * | t, |
struct dm_target_callbacks * | cb | ||
) |
Definition at line 1546 of file dm-table.c.
Definition at line 1124 of file dm-table.c.
int dm_table_create | ( | struct dm_table ** | result, |
fmode_t | mode, | ||
unsigned | num_targets, | ||
struct mapped_device * | md | ||
) |
Definition at line 201 of file dm-table.c.
Definition at line 1163 of file dm-table.c.
Definition at line 278 of file dm-table.c.
|
read |
Definition at line 1592 of file dm-table.c.
Definition at line 1483 of file dm-table.c.
Definition at line 1473 of file dm-table.c.
Definition at line 1178 of file dm-table.c.
Definition at line 284 of file dm-table.c.
void dm_uevent_add | ( | struct mapped_device * | md, |
struct list_head * | elist | ||
) |
int dm_underlying_device_busy | ( | struct request_queue * | q | ) |
void dm_unregister_target | ( | struct target_type * | t | ) |
Definition at line 97 of file dm-target.c.
Definition at line 146 of file dm-table.c.