insmod / rmmod 시 __register 함수와 __unregister 함수를 자동으로 호출해 준다.
bus에 특정한 mecro를 만들기 위해서 사용해야 하며, 단독으로 사용하면 안된다.
Parameters struct device * devDevice to perform the check on
module_driver(__driver, __register, __unregister, …) Helper macro for drivers that don’t do anything special in module init/exit. This eliminates a lot of boilerplate. Each module may only use this macro once, and calling it replaces module_init() and module_exit(). Parameters __driverdriver name __registerregister function for this driver type __unregisterunregister function for this driver type ...Additional arguments to be passed to __register and __unregister.
Description Use this macro to construct bus specific macros for registering drivers, and do not use it on its own. |
'Programming > Linux_Kernel' 카테고리의 다른 글
linux kernel 의 memory mapping 함수 정리 (0) | 2020.04.29 |
---|---|
__meminit section keyword (0) | 2020.03.23 |
memory compaction (kcompactd) (0) | 2020.03.20 |
[linux kernel] memory zone (0) | 2020.03.20 |
buddy allocator가 왜 buddy인가? (0) | 2020.03.20 |