Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | attribute_container |
Macros | |
#define | ATTRIBUTE_CONTAINER_NO_CLASSDEVS 0x01 |
#define ATTRIBUTE_CONTAINER_NO_CLASSDEVS 0x01 |
Definition at line 24 of file attribute_container.h.
attribute_container_add_class_device - same function as device_add
: the class device to add
This performs essentially the same function as device_add except for attribute containers, namely add the classdev to the system and then create the attribute files
Definition at line 350 of file attribute_container.c.
int attribute_container_add_class_device_adapter | ( | struct attribute_container * | cont, |
struct device * | dev, | ||
struct device * | classdev | ||
) |
attribute_container_add_class_device_adapter - simple adapter for triggers
This function is identical to attribute_container_add_class_device except that it is designed to be called from the triggers
Definition at line 365 of file attribute_container.c.
void attribute_container_add_device | ( | struct device * | dev, |
int(*)(struct attribute_container *, struct device *, struct device *) | fn | ||
) |
Definition at line 142 of file attribute_container.c.
attribute_container_class_device_del - equivalent of class_device_del
: the class device
This function simply removes all the attribute files and then calls device_del.
Definition at line 407 of file attribute_container.c.
|
read |
|
read |
attribute_container_classdev_to_container - given a classdev, return the container
: the class device created by attribute_container_add_device.
Returns the container associated with this classdev.
Definition at line 56 of file attribute_container.c.
void attribute_container_create_device | ( | struct device * | dev, |
int(*)(struct attribute_container *, struct device *, struct device *) | fn | ||
) |
void attribute_container_device_trigger | ( | struct device * | dev, |
int(*)(struct attribute_container *, struct device *, struct device *) | fn | ||
) |
Definition at line 251 of file attribute_container.c.
int attribute_container_register | ( | struct attribute_container * | cont | ) |
attribute_container_register - register an attribute container
: The container to register. This must be allocated by the callee and should also be zeroed by it.
Definition at line 75 of file attribute_container.c.
attribute_container_remove_attrs - remove any attribute files
: The class device to remove the files from
Definition at line 379 of file attribute_container.c.
void attribute_container_remove_device | ( | struct device * | dev, |
void(*)(struct attribute_container *, struct device *, struct device *) | fn | ||
) |
Definition at line 207 of file attribute_container.c.
void attribute_container_trigger | ( | struct device * | dev, |
int(*)(struct attribute_container *, struct device *) | fn | ||
) |
Definition at line 292 of file attribute_container.c.
int __must_check attribute_container_unregister | ( | struct attribute_container * | cont | ) |
attribute_container_unregister - remove a container registration
: previously registered container to remove
Definition at line 95 of file attribute_container.c.