1#ifndef __VSF_LINUX_DEVICE_DRIVER_H__
2#define __VSF_LINUX_DEVICE_DRIVER_H__
13#define module_driver(__driver, __register, __unregister, ...) \
14static void __init __driver##_init(void) \
16 __register(&(__driver) , ##__VA_ARGS__); \
18module_init(__driver##_init); \
19static void __exit __driver##_exit(void) \
21 __unregister(&(__driver) , ##__VA_ARGS__); \
23module_exit(__driver##_exit);
25#define module_driver_init(__driver) \
26module_run_init(__driver##_init)
void driver_unregister(struct device_driver *drv)
Definition vsf_linux_core.c:598
int driver_register(struct device_driver *drv)
Definition vsf_linux_core.c:593
int(* resume)(struct device *dev)
Definition driver.h:39
const char * mod_name
Definition driver.h:33
struct module * owner
Definition driver.h:32
int(* remove)(struct device *dev)
Definition driver.h:36
const char * name
Definition driver.h:29
struct bus_type * bus
Definition driver.h:30
int(* probe)(struct device *dev)
Definition driver.h:35
void(* shutdown)(struct device *dev)
Definition driver.h:37
int(* suspend)(struct device *dev)
Definition driver.h:38