aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormochel@digitalimplant.org2005-03-21 11:49:14 -0800
committerGreg Kroah-Hartman2005-06-20 15:15:14 -0700
commit465c7a3a3a5aabcedd2e43612cac5a12f23da19a (patch)
tree392dabbfe84d1de3e84b1eb238bfd09d0ade6c4c /include
parent9a19fea43616066561e221359596ce532e631395 (diff)
[PATCH] Add a klist to struct bus_type for its devices.
- Use it for bus_for_each_dev(). - Use the klist spinlock instead of the bus rwsem. Signed-off-by: Patrick Mochel <mochel@digitalimplant.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 10f5aa20e041..e36953cf7f14 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -14,6 +14,7 @@
#include <linux/config.h>
#include <linux/ioport.h>
#include <linux/kobject.h>
+#include <linux/klist.h>
#include <linux/list.h>
#include <linux/types.h>
#include <linux/module.h>
@@ -51,6 +52,7 @@ struct bus_type {
struct subsystem subsys;
struct kset drivers;
struct kset devices;
+ struct klist klist_devices;
struct bus_attribute * bus_attrs;
struct device_attribute * dev_attrs;
@@ -262,6 +264,7 @@ struct device {
struct list_head bus_list; /* node in bus's list */
struct list_head driver_list;
struct list_head children;
+ struct klist_node knode_bus;
struct device * parent;
struct kobject kobj;