diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-05-28 20:01:51 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-05-28 20:01:51 -0700 |
| commit | 403892ab93deb909dc1cd16693b2dccb531aa2cd (patch) | |
| tree | 04a3960dd2e0d3857fb5bdc3db2f8a5ca7e79795 /include/linux | |
| parent | e1e5aa9b53be641a87ed3cb98871bb0abdf3e4f2 (diff) | |
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)
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index b8729d952190..dd88f8b7cace 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -68,6 +68,8 @@ struct bus_type { struct driver_dir_entry dir; struct driver_dir_entry device_dir; struct driver_dir_entry driver_dir; + + int (*bind) (struct device * dev, struct device_driver * drv); }; |
