Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dm.h File Reference
#include <linux/fs.h>
#include <linux/device-mapper.h>
#include <linux/list.h>
#include <linux/blkdev.h>
#include <linux/hdreg.h>

Go to the source code of this file.

Data Structures

struct  dm_dev_internal
 

Macros

#define DM_SUSPEND_LOCKFS_FLAG   (1 << 0)
 
#define DM_SUSPEND_NOFLUSH_FLAG   (1 << 1)
 
#define DM_STATUS_NOFLUSH_FLAG   (1 << 0)
 
#define DM_TYPE_NONE   0
 
#define DM_TYPE_BIO_BASED   1
 
#define DM_TYPE_REQUEST_BASED   2
 
#define dm_target_is_valid(t)   ((t)->table)
 
#define dm_target_request_based(t)   ((t)->type->map_rq != NULL)
 

Functions

void dm_table_destroy (struct dm_table *t)
 
void dm_table_event_callback (struct dm_table *t, void(*fn)(void *), void *context)
 
struct dm_targetdm_table_get_target (struct dm_table *t, unsigned int index)
 
struct dm_targetdm_table_find_target (struct dm_table *t, sector_t sector)
 
bool dm_table_has_no_data_devices (struct dm_table *table)
 
int dm_calculate_queue_limits (struct dm_table *table, struct queue_limits *limits)
 
void dm_table_set_restrictions (struct dm_table *t, struct request_queue *q, struct queue_limits *limits)
 
struct list_headdm_table_get_devices (struct dm_table *t)
 
void dm_table_presuspend_targets (struct dm_table *t)
 
void dm_table_postsuspend_targets (struct dm_table *t)
 
int dm_table_resume_targets (struct dm_table *t)
 
int dm_table_any_congested (struct dm_table *t, int bdi_bits)
 
int dm_table_any_busy_target (struct dm_table *t)
 
unsigned dm_table_get_type (struct dm_table *t)
 
struct target_typedm_table_get_immutable_target_type (struct dm_table *t)
 
bool dm_table_request_based (struct dm_table *t)
 
bool dm_table_supports_discards (struct dm_table *t)
 
int dm_table_alloc_md_mempools (struct dm_table *t)
 
void dm_table_free_md_mempools (struct dm_table *t)
 
struct dm_md_mempoolsdm_table_get_md_mempools (struct dm_table *t)
 
int dm_queue_merge_is_compulsory (struct request_queue *q)
 
void dm_lock_md_type (struct mapped_device *md)
 
void dm_unlock_md_type (struct mapped_device *md)
 
void dm_set_md_type (struct mapped_device *md, unsigned type)
 
unsigned dm_get_md_type (struct mapped_device *md)
 
struct target_typedm_get_immutable_target_type (struct mapped_device *md)
 
int dm_setup_md_queue (struct mapped_device *md)
 
int dm_target_init (void)
 
void dm_target_exit (void)
 
struct target_typedm_get_target_type (const char *name)
 
void dm_put_target_type (struct target_type *tt)
 
int dm_target_iterate (void(*iter_func)(struct target_type *tt, void *param), void *param)
 
int dm_split_args (int *argc, char ***argvp, char *input)
 
int dm_deleting_md (struct mapped_device *md)
 
int dm_suspended_md (struct mapped_device *md)
 
int dm_interface_init (void)
 
void dm_interface_exit (void)
 
int dm_sysfs_init (struct mapped_device *md)
 
void dm_sysfs_exit (struct mapped_device *md)
 
struct kobjectdm_kobject (struct mapped_device *md)
 
struct mapped_devicedm_get_from_kobject (struct kobject *kobj)
 
int dm_linear_init (void)
 
void dm_linear_exit (void)
 
int dm_stripe_init (void)
 
void dm_stripe_exit (void)
 
void dm_destroy (struct mapped_device *md)
 
void dm_destroy_immediate (struct mapped_device *md)
 
int dm_open_count (struct mapped_device *md)
 
int dm_lock_for_deletion (struct mapped_device *md)
 
int dm_kobject_uevent (struct mapped_device *md, enum kobject_action action, unsigned cookie)
 
int dm_io_init (void)
 
void dm_io_exit (void)
 
int dm_kcopyd_init (void)
 
void dm_kcopyd_exit (void)
 
struct dm_md_mempoolsdm_alloc_md_mempools (unsigned type, unsigned integrity)
 
void dm_free_md_mempools (struct dm_md_mempools *pools)
 

Macro Definition Documentation

#define DM_STATUS_NOFLUSH_FLAG   (1 << 0)

Definition at line 28 of file dm.h.

#define DM_SUSPEND_LOCKFS_FLAG   (1 << 0)

Definition at line 22 of file dm.h.

#define DM_SUSPEND_NOFLUSH_FLAG   (1 << 1)

Definition at line 23 of file dm.h.

#define dm_target_is_valid (   t)    ((t)->table)

Definition at line 89 of file dm.h.

#define dm_target_request_based (   t)    ((t)->type->map_rq != NULL)

Definition at line 94 of file dm.h.

#define DM_TYPE_BIO_BASED   1

Definition at line 34 of file dm.h.

#define DM_TYPE_NONE   0

Definition at line 33 of file dm.h.

#define DM_TYPE_REQUEST_BASED   2

Definition at line 35 of file dm.h.

Function Documentation

struct dm_md_mempools* dm_alloc_md_mempools ( unsigned  type,
unsigned  integrity 
)
read

Definition at line 2714 of file dm.c.

int dm_calculate_queue_limits ( struct dm_table table,
struct queue_limits *  limits 
)

Definition at line 1253 of file dm-table.c.

int dm_deleting_md ( struct mapped_device md)

Definition at line 340 of file dm.c.

void dm_destroy ( struct mapped_device md)

Definition at line 2304 of file dm.c.

void dm_destroy_immediate ( struct mapped_device md)

Definition at line 2309 of file dm.c.

void dm_free_md_mempools ( struct dm_md_mempools pools)

Definition at line 2764 of file dm.c.

struct mapped_device* dm_get_from_kobject ( struct kobject kobj)
read

Definition at line 2681 of file dm.c.

struct target_type* dm_get_immutable_target_type ( struct mapped_device md)
read

Definition at line 2165 of file dm.c.

unsigned dm_get_md_type ( struct mapped_device md)

Definition at line 2160 of file dm.c.

struct target_type* dm_get_target_type ( const char name)
read

Definition at line 51 of file dm-target.c.

void dm_interface_exit ( void  )

Definition at line 1747 of file dm-ioctl.c.

int dm_interface_init ( void  )

Definition at line 1726 of file dm-ioctl.c.

void dm_io_exit ( void  )

Definition at line 508 of file dm-io.c.

int dm_io_init ( void  )

Definition at line 499 of file dm-io.c.

void dm_kcopyd_exit ( void  )

Definition at line 265 of file dm-kcopyd.c.

int dm_kcopyd_init ( void  )

Definition at line 251 of file dm-kcopyd.c.

struct kobject* dm_kobject ( struct mapped_device md)
read

Definition at line 2672 of file dm.c.

int dm_kobject_uevent ( struct mapped_device md,
enum kobject_action  action,
unsigned  cookie 
)

Definition at line 2622 of file dm.c.

void dm_linear_exit ( void  )

Definition at line 179 of file dm-linear.c.

int dm_linear_init ( void  )

Definition at line 169 of file dm-linear.c.

int dm_lock_for_deletion ( struct mapped_device md)

Definition at line 392 of file dm.c.

void dm_lock_md_type ( struct mapped_device md)

Definition at line 2145 of file dm.c.

int dm_open_count ( struct mapped_device md)

Definition at line 384 of file dm.c.

void dm_put_target_type ( struct target_type tt)

Definition at line 63 of file dm-target.c.

int dm_queue_merge_is_compulsory ( struct request_queue q)

Definition at line 2006 of file dm.c.

void dm_set_md_type ( struct mapped_device md,
unsigned  type 
)

Definition at line 2155 of file dm.c.

int dm_setup_md_queue ( struct mapped_device md)

Definition at line 2199 of file dm.c.

int dm_split_args ( int argc,
char ***  argvp,
char input 
)

Definition at line 604 of file dm-table.c.

void dm_stripe_exit ( void  )

Definition at line 456 of file dm-stripe.c.

int dm_stripe_init ( void  )

Definition at line 443 of file dm-stripe.c.

int dm_suspended_md ( struct mapped_device md)

Definition at line 2697 of file dm.c.

void dm_sysfs_exit ( struct mapped_device md)

Definition at line 105 of file dm-sysfs.c.

int dm_sysfs_init ( struct mapped_device md)

Definition at line 95 of file dm-sysfs.c.

int dm_table_alloc_md_mempools ( struct dm_table t)

Definition at line 967 of file dm-table.c.

int dm_table_any_busy_target ( struct dm_table t)

Definition at line 1578 of file dm-table.c.

int dm_table_any_congested ( struct dm_table t,
int  bdi_bits 
)

Definition at line 1552 of file dm-table.c.

void dm_table_destroy ( struct dm_table t)

Definition at line 243 of file dm-table.c.

void dm_table_event_callback ( struct dm_table t,
void(*)(void *)  fn,
void context 
)

Definition at line 1154 of file dm-table.c.

struct dm_target* dm_table_find_target ( struct dm_table t,
sector_t  sector 
)
read

Definition at line 1198 of file dm-table.c.

void dm_table_free_md_mempools ( struct dm_table t)

Definition at line 983 of file dm-table.c.

struct list_head* dm_table_get_devices ( struct dm_table t)
read

Definition at line 1478 of file dm-table.c.

struct target_type* dm_table_get_immutable_target_type ( struct dm_table t)
read

Definition at line 957 of file dm-table.c.

struct dm_md_mempools* dm_table_get_md_mempools ( struct dm_table t)
read

Definition at line 989 of file dm-table.c.

struct dm_target* dm_table_get_target ( struct dm_table t,
unsigned int  index 
)
read

Definition at line 1184 of file dm-table.c.

unsigned dm_table_get_type ( struct dm_table t)

Definition at line 952 of file dm-table.c.

bool dm_table_has_no_data_devices ( struct dm_table table)

Definition at line 1231 of file dm-table.c.

void dm_table_postsuspend_targets ( struct dm_table t)

Definition at line 1513 of file dm-table.c.

void dm_table_presuspend_targets ( struct dm_table t)

Definition at line 1505 of file dm-table.c.

bool dm_table_request_based ( struct dm_table t)

Definition at line 962 of file dm-table.c.

int dm_table_resume_targets ( struct dm_table t)

Definition at line 1521 of file dm-table.c.

void dm_table_set_restrictions ( struct dm_table t,
struct request_queue q,
struct queue_limits *  limits 
)

Definition at line 1417 of file dm-table.c.

bool dm_table_supports_discards ( struct dm_table t)

Definition at line 1606 of file dm-table.c.

void dm_target_exit ( void  )

Definition at line 148 of file dm-target.c.

int dm_target_init ( void  )

Definition at line 143 of file dm-target.c.

int dm_target_iterate ( void(*)(struct target_type *tt, void *param iter_func,
void param 
)

Definition at line 70 of file dm-target.c.

void dm_unlock_md_type ( struct mapped_device md)

Definition at line 2150 of file dm.c.