9 #include <linux/module.h>
14 #define DM_MSG_PREFIX "target"
19 #define DM_MOD_NAME_SIZE 32
38 tt = __find_target_type(name);
39 if (tt && !try_module_get(tt->
module))
46 static void load_module(
const char *name)
48 request_module(
"dm-%s", name);
57 tt = get_target_type(name);
71 void *
param),
void *param)
88 if (__find_target_type(tt->
name))
91 list_add(&tt->
list, &_targets);
100 if (!__find_target_type(tt->
name)) {
101 DMCRIT(
"Unregistering unrecognised target: %s", tt->
name);
114 static int io_err_ctr(
struct dm_target *tt,
unsigned int argc,
char **args)
124 static void io_err_dtr(
struct dm_target *tt)
129 static int io_err_map(
struct dm_target *tt,
struct bio *bio,
137 .version = {1, 0, 1},