Device Model: Implement centralized device/driver binding
authorPatrick Mochel <mochel@osdl.org>
Wed, 29 May 2002 03:01:51 +0000 (20:01 -0700)
committerPatrick Mochel <mochel@osdl.org>
Wed, 29 May 2002 03:01:51 +0000 (20:01 -0700)
commit403892ab93deb909dc1cd16693b2dccb531aa2cd
tree04a3960dd2e0d3857fb5bdc3db2f8a5ca7e79795
parente1e5aa9b53be641a87ed3cb98871bb0abdf3e4f2
Device Model: Implement centralized device/driver binding
- on device registration, all drivers of bus are iterated over
- bus's bind callback is called to match device to driver
- if successful, driver's probe callback is called
- on device removal, driver's remove callback is called
- on driver registration, list of devices is iterated over (and same thing happens)
drivers/base/base.h
drivers/base/core.c
drivers/base/driver.c
include/linux/device.h