diff options
author | mochel@digitalimplant.org <mochel@digitalimplant.org> | 2005-03-21 15:00:18 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-20 18:15:14 -0400 |
commit | 38fdac3cdce276554b4484a41f8ec2daf81cb2ff (patch) | |
tree | 1bdd0b8b69bd8e13de53036c8ef8b968a0dacc1d /include | |
parent | 465c7a3a3a5aabcedd2e43612cac5a12f23da19a (diff) |
[PATCH] Add a klist to struct bus_type for its drivers.
- Use it in bus_for_each_drv().
- 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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index e36953cf7f14..ea9ab33dfe71 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -53,6 +53,7 @@ struct bus_type { | |||
53 | struct kset drivers; | 53 | struct kset drivers; |
54 | struct kset devices; | 54 | struct kset devices; |
55 | struct klist klist_devices; | 55 | struct klist klist_devices; |
56 | struct klist klist_drivers; | ||
56 | 57 | ||
57 | struct bus_attribute * bus_attrs; | 58 | struct bus_attribute * bus_attrs; |
58 | struct device_attribute * dev_attrs; | 59 | struct device_attribute * dev_attrs; |
@@ -105,6 +106,7 @@ struct device_driver { | |||
105 | struct completion unloaded; | 106 | struct completion unloaded; |
106 | struct kobject kobj; | 107 | struct kobject kobj; |
107 | struct list_head devices; | 108 | struct list_head devices; |
109 | struct klist_node knode_bus; | ||
108 | 110 | ||
109 | struct module * owner; | 111 | struct module * owner; |
110 | 112 | ||