1

如果我们以一个ahci驱动为例。在 ahci_platform.c 中有一些驱动功能描述如下:

static struct platform_driver ahci_driver = {...functions...}. 

platform_driver问题是:结构下描述的功能和*_opsahci_ops例如)下描述的功能有什么区别?

据我了解,以platform_driver加载/卸载驱动程序为例,通常会自动调用结构中的函数。中描述的功能*_ops是更多用户可访问的功能。那是对的吗?

4

0 回答 0