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

posted on 2022-12-24 11:58  者旨於陽  阅读(47)  评论(0编辑  收藏  举报

导航