bus_for_each_dev 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_DEV(9)	 Device drivers infrastructure	   BUS_FOR_EACH_DEV(9)

       bus_for_each_dev - device iterator.

       int bus_for_each_dev(struct bus_type * bus, struct device * start,
			    void * data, int (*fn) (struct device *, void *));

	   bus type.

	   device to start iterating from.

	   data for the callback.

	   function to be called for each device.

       Iterate over bus's list of devices, and call fn for each, passing it
       data. If start is not NULL, we use that device to begin iterating from.

       We check the return of fn each time. If it returns anything other than
       0, we break out and return that value.

       The device that returns a non-zero value is not retained in any way,
       nor is its refcount incremented. If the caller needs to retain this
       data, it should do so, and increment the reference count in the
       supplied callback.

Kernel Hackers Manual 3.8.	   June 2014		   BUS_FOR_EACH_DEV(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