1MODULE_DRIVER(9) Device drivers infrastructure MODULE_DRIVER(9)
2
3
4
6 module_driver - Helper macro for drivers that don't do anything special
7 in module init/exit. This eliminates a lot of boilerplate. Each module
8 may only use this macro once, and calling it replaces module_init and
9 module_exit.
10
12 module_driver(__driver, __register, __unregister, ...);
13
15 __driver
16 driver name
17
18 __register
19 register function for this driver type
20
21 __unregister
22 unregister function for this driver type @...: Additional arguments
23 to be passed to __register and __unregister.
24
25 ...
26 variable arguments
27
29 Use this macro to construct bus specific macros for registering
30 drivers, and do not use it on its own.
31
33Kernel Hackers Manual 3.10 June 2019 MODULE_DRIVER(9)