如果我们以一个ahci驱动为例。在 ahci_platform.c 中有一些驱动功能描述如下:
static struct platform_driver ahci_driver = {...functions...}.
platform_driver
问题是:结构下描述的功能和*_ops
(ahci_ops
例如)下描述的功能有什么区别?
据我了解,以platform_driver
加载/卸载驱动程序为例,通常会自动调用结构中的函数。中描述的功能*_ops
是更多用户可访问的功能。那是对的吗?