内核如何探测驱动程序

How does kernel probe drivers

当内核启动时(特别是在基于 arm 的设备上),它如何知道哪些设备连接到它以及要探测哪些驱动程序?能否请您参考内核源代码或举个例子....谢谢

Linux 内核将知道该设备仅通过其设备驱动程序连接。根据 Linux 内核的配置加载的设备驱动程序列表。

在 Linux 内核编译期间启用驱动程序时,驱动程序的初始化部分将放置在内核映像的特殊部分。

start_kernel(), the static device drivers will be loaded one by one的内核初始化过程中。

参考Linux内核中的init调用机制

http://linuxgazette.net/157/amurray.html
http://lwn.net/Articles/141730/