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   者旨於陽  阅读(55)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示