Linux驱动开发11——平台设备驱动
module_platform_driver(xxx);
该宏定义展开为:
static int __init xxx_init(void) { return platform_driver_register(&xxx); } module_init(xxx_init);
static void __exit xxx_init(void) { return platform_driver_unregister(&xxx); } module_exit(xxx_exit);
参考:
https://www.kernel.org/doc/html/latest/driver-api/driver-model/platform.html
IOCTL in Linux (Input Output Control in Linux) ⋆ EmbeTronicX