class_dev_iter_next

Langue: en

Version: May 2009 (fedora - 06/07/09)

Section: 9 (Appels noyau Linux)

NAME

class_dev_iter_next - iterate to the next device

SYNOPSIS

struct device * class_dev_iter_next(struct class_dev_iter * iter);

ARGUMENTS

iter

class iterator to proceed

DESCRIPTION

Proceed iter to the next device and return it. Returns NULL if iteration is complete.

The returned device is referenced and won't be released till iterator is proceed to the next device or exited. The caller is free to do whatever it wants to do with the device including calling back into class code.