草稿:
platform_driver_register
__platform_driver_register
driver_register
bus_add_driver
driver_attach
bus_for_each_dev (有如下调用:fn(dev, data);指的就是__driver_attach)
__driver_attach
driver_match_device / driver_probe_device match:return drv->bus->match ? drv->bus->match(dev, drv) : 1;走到总线的match函数;
really_probe
drv->probe 调用了driver的probe函数
另外,module_init是怎么调用的呢:
https://blog.csdn.net/u013216061/article/details/72511653
https://blog.csdn.net/richard_liujh/article/details/46758073