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
标签:11,xxx,driver,module,platform,init,exit,Linux,驱动 From: https://www.cnblogs.com/justin-y-lin/p/17002708.html