suse man page for class_for_each_device

Query: class_for_each_device

OS: suse

Section: 9

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CLASS_FOR_EACH_DEVIC(9) 				   Device drivers infrastructure				   CLASS_FOR_EACH_DEVIC(9)

NAME
class_for_each_device - device iterator
SYNOPSIS
int class_for_each_device(struct class * class, struct device * start, void * data, int (*fn) (struct device *, void *));
ARGUMENTS
class the class we're iterating start the device to start with in the list, if any. data data for the callback fn function to be called for each device
DESCRIPTION
Iterate over class's list of devices, and call fn for each, passing it data. If start is set, the list iteration will start there, otherwise if it is NULL, the iteration starts at the beginning of the list. We check the return of fn each time. If it returns anything other than 0, we break out and return that value. fn is allowed to do anything including calling back into class code. There's no locking restriction.
COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 CLASS_FOR_EACH_DEVIC(9)
Related Man Pages
deviter_init(9) - netbsd
device_create_with_groups(9) - centos
deviter_first(9) - netbsd
device_schedule_callback_owner(9) - suse
deviter_release(9) - netbsd
Similar Topics in the Unix Linux Community
How to restrict user to a specific directory in solaris 10
Grant unprivileged user rights to see the output of echo|format but not modify disks
Migrating to UNIX
A (ksh) Library For and From UNIX.com
The Future of the PM (Private Message) System at UNIX.com