Device Model: Add helpers bus_for_each_dev and bus_for_each_drv
authorPatrick Mochel <mochel@osdl.org>
Wed, 29 May 2002 02:51:08 +0000 (19:51 -0700)
committerPatrick Mochel <mochel@osdl.org>
Wed, 29 May 2002 02:51:08 +0000 (19:51 -0700)
commite1e5aa9b53be641a87ed3cb98871bb0abdf3e4f2
tree54c2df2680ee17f1f88bf1f93e4bee8af7f63bf1
parent21a16f65b95259e28e99eb81977c790e77133ffb
Device Model: Add helpers bus_for_each_dev and bus_for_each_drv
- iterators for accessing bus's lists of devices and drivers
- does locking on bus for each list access
- does reference counting on objects as it grabs and releases them
- calls callback for each object in list
drivers/base/bus.c
include/linux/device.h