|
Defines |
| #define | to_class_attr(_attr) container_of(_attr, struct class_attribute, attr) |
Functions |
| static ssize_t | class_attr_show (struct kobject *kobj, struct attribute *attr, char *buf) |
| static ssize_t | class_attr_store (struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) |
| static void | class_release (struct kobject *kobj) |
| int | class_create_file (struct class *cls, const struct class_attribute *attr) |
| void | class_remove_file (struct class *cls, const struct class_attribute *attr) |
| static struct class * | class_get (struct class *cls) |
| static void | class_put (struct class *cls) |
| static int | add_class_attrs (struct class *cls) |
| static void | remove_class_attrs (struct class *cls) |
| static void | klist_class_dev_get (struct klist_node *n) |
| static void | klist_class_dev_put (struct klist_node *n) |
| int | __class_register (struct class *cls, struct lock_class_key *key) |
| | EXPORT_SYMBOL_GPL (__class_register) |
| void | class_unregister (struct class *cls) |
| static void | class_create_release (struct class *cls) |
|
class_create - create a struct class structure : pointer to the module that is to "own" this struct class
: the lock_class_key for this class; used by mutex lock debugging
This is used to create a struct class pointer that can then be used in calls to device_create().
Note, the pointer created here is to be destroyed when finished by making a call to class_destroy().
|
| struct class * | __class_create (struct module *owner, const char *name, struct lock_class_key *key) |
| | EXPORT_SYMBOL_GPL (__class_create) |
| void | class_destroy (struct class *cls) |
| | class_destroy - destroys a struct class structure : pointer to the struct class that is to be destroyed
|
| void | class_dev_iter_init (struct class_dev_iter *iter, struct class *class, struct device *start, const struct device_type *type) |
| | EXPORT_SYMBOL_GPL (class_dev_iter_init) |
| struct device * | class_dev_iter_next (struct class_dev_iter *iter) |
| | class_dev_iter_next - iterate to the next device : class iterator to proceed
|
| | EXPORT_SYMBOL_GPL (class_dev_iter_next) |
| void | class_dev_iter_exit (struct class_dev_iter *iter) |
| | class_dev_iter_exit - finish iteration : class iterator to finish
|
| | EXPORT_SYMBOL_GPL (class_dev_iter_exit) |
| int | class_for_each_device (struct class *class, struct device *start, void *data, int(*fn)(struct device *, void *)) |
| | EXPORT_SYMBOL_GPL (class_for_each_device) |
| struct device * | class_find_device (struct class *class, struct device *start, void *data, int(*match)(struct device *, void *)) |
| | EXPORT_SYMBOL_GPL (class_find_device) |
| int | class_interface_register (struct class_interface *class_intf) |
| void | class_interface_unregister (struct class_interface *class_intf) |
| int __init | classes_init (void) |
| | 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) |
Variables |
| static struct sysfs_ops | class_sysfs_ops |
| static struct kobj_type | class_ktype |
| static struct kset * | class_kset |
| struct device* class_dev_iter_next |
( |
struct class_dev_iter * |
iter |
) |
[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.
Definition at line 321 of file class.c.