linux (platform driver)平台设备驱动匹配方法

Table of Contents

一、匹配函数platform_match

1.1、设备树匹配方法

1.2、id_table匹配方法

1.3、dev-name和platform_driver->drv->name匹配方法


一、匹配函数platform_match

平台设备驱动分为设备层和驱动层,每当有新的设备或者新的设备驱动注册时都要首先调用匹配函数进行匹配

 

1.1、设备树匹配方法

1.2、id_table匹配方法

1.3、dev-name和platform_driver->drv->name匹配方法

发布了138 篇原创文章 · 获赞 114 · 访问量 7万+

猜你喜欢

转载自blog.csdn.net/shenlong1356/article/details/104461673