Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dm-target.c File Reference
#include "dm.h"
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kmod.h>
#include <linux/bio.h>

Go to the source code of this file.

Macros

#define DM_MSG_PREFIX   "target"
 
#define DM_MOD_NAME_SIZE   32
 

Functions

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_register_target (struct target_type *tt)
 
void dm_unregister_target (struct target_type *tt)
 
int __init dm_target_init (void)
 
void dm_target_exit (void)
 
 EXPORT_SYMBOL (dm_register_target)
 
 EXPORT_SYMBOL (dm_unregister_target)
 

Macro Definition Documentation

#define DM_MOD_NAME_SIZE   32

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

#define DM_MSG_PREFIX   "target"

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

Function Documentation

struct target_type* dm_get_target_type ( const char name)
read

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

void dm_put_target_type ( struct target_type tt)

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

int dm_register_target ( struct target_type tt)

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

void dm_target_exit ( void  )

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

int __init 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_unregister_target ( struct target_type tt)

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

EXPORT_SYMBOL ( dm_register_target  )
EXPORT_SYMBOL ( dm_unregister_target  )