Linux Kernel
3.7.1
|
#include <linux/device.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/string.h>
#include <linux/kdev_t.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <linux/genhd.h>
#include <linux/mutex.h>
#include "base.h"
Go to the source code of this file.
Data Structures | |
struct | class_compat |
Macros | |
#define | to_class_attr(_attr) container_of(_attr, struct class_attribute, attr) |
#define to_class_attr | ( | _attr | ) | container_of(_attr, struct class_attribute, attr) |
int __class_register | ( | struct class * | cls, |
struct lock_class_key * | key | ||
) |
|
read |
void class_compat_unregister | ( | struct class_compat * | cls | ) |
void class_dev_iter_exit | ( | struct class_dev_iter * | iter | ) |
void class_dev_iter_init | ( | struct class_dev_iter * | iter, |
struct class * | class, | ||
struct device * | start, | ||
const struct device_type * | type | ||
) |
|
read |
class_dev_iter_next - iterate to the next device : class iterator to proceed
Proceed 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.
int class_interface_register | ( | struct class_interface * | class_intf | ) |
void class_interface_unregister | ( | struct class_interface * | class_intf | ) |
EXPORT_SYMBOL_GPL | ( | __class_register | ) |
EXPORT_SYMBOL_GPL | ( | __class_create | ) |
EXPORT_SYMBOL_GPL | ( | class_dev_iter_init | ) |
EXPORT_SYMBOL_GPL | ( | class_dev_iter_next | ) |
EXPORT_SYMBOL_GPL | ( | class_dev_iter_exit | ) |
EXPORT_SYMBOL_GPL | ( | class_for_each_device | ) |
EXPORT_SYMBOL_GPL | ( | class_find_device | ) |
EXPORT_SYMBOL_GPL | ( | show_class_attr_string | ) |
EXPORT_SYMBOL_GPL | ( | class_compat_register | ) |
EXPORT_SYMBOL_GPL | ( | class_compat_unregister | ) |
EXPORT_SYMBOL_GPL | ( | class_compat_create_link | ) |
EXPORT_SYMBOL_GPL | ( | class_compat_remove_link | ) |
EXPORT_SYMBOL_GPL | ( | class_create_file | ) |
EXPORT_SYMBOL_GPL | ( | class_remove_file | ) |
EXPORT_SYMBOL_GPL | ( | class_unregister | ) |
EXPORT_SYMBOL_GPL | ( | class_destroy | ) |
EXPORT_SYMBOL_GPL | ( | class_interface_register | ) |
EXPORT_SYMBOL_GPL | ( | class_interface_unregister | ) |