bus_for_each_drv man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

BUS_FOR_EACH_DRV(9)	 Device drivers infrastructure	   BUS_FOR_EACH_DRV(9)

       bus_for_each_drv - driver iterator

       int bus_for_each_drv(struct bus_type * bus,
			    struct device_driver * start, void * data,
			    int (*fn) (struct device_driver *, void *));

	   bus we're dealing with.

	   driver to start iterating on.

	   data to pass to the callback.

	   function to call for each driver.

       This is nearly identical to the device iterator above. We iterate over
       each driver that belongs to bus, and call fn for each. If fn returns
       anything but 0, we break out and return it. If start is not NULL, we
       use it as the head of the list.

       we don't return the driver that returns a non-zero value, nor do we
       leave the reference count incremented for that driver. If the caller
       needs to know that info, it must set it in the callback. It must also
       be sure to increment the refcount so it doesn't disappear before
       returning to the caller.

Kernel Hackers Manual 3.8.	   June 2014		   BUS_FOR_EACH_DRV(9)

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
Vote for polarhome
Free Shell Accounts :: the biggest list on the net