]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/attribute_container.h
NLM: Ensure that nlmclnt_cancel_callback() doesn't loop forever
[linux-2.6-omap-h63xx.git] / include / linux / attribute_container.h
index af1010b6dab797292d11a1b7eb95a03a1f3deffc..93bfb0beb62a9f1903d37e266fcb22b8284cf5ec 100644 (file)
 
 #include <linux/device.h>
 #include <linux/list.h>
+#include <linux/klist.h>
+#include <linux/spinlock.h>
 
 struct attribute_container {
        struct list_head        node;
-       struct list_head        containers;
+       struct klist            containers;
        struct class            *class;
        struct class_device_attribute **attrs;
        int (*match)(struct attribute_container *, struct device *);
@@ -62,12 +64,8 @@ int attribute_container_add_class_device_adapter(struct attribute_container *con
                                                 struct class_device *classdev);
 void attribute_container_remove_attrs(struct class_device *classdev);
 void attribute_container_class_device_del(struct class_device *classdev);
-
-
-
-
-
-
+struct attribute_container *attribute_container_classdev_to_container(struct class_device *);
+struct class_device *attribute_container_find_class_device(struct attribute_container *, struct device *);
 struct class_device_attribute **attribute_container_classdev_to_attrs(const struct class_device *classdev);
 
 #endif