summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-01-06 09:20:40 -0600
committerPatrick Mochel <mochel@osdl.org>2003-01-06 09:20:40 -0600
commit7dd6e94ed51400dd897b8bf3f791baaa61cbbf22 (patch)
tree380c8f3956a4b4c20b3d1fd42f01e87fee254461 /include/linux
parentc3016fe6abf9a2baf8accbe22ef964d506bd9e8a (diff)
add kset_find_obj() to search for object in a kset's list.
The operation is simple: - Take read lock for kset. - Iterate over kset->list. - Compare name to each kobject's name. - Return kobject if found.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kobject.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h
index 2b9f1321a54e..ff15fe1bc8fd 100644
--- a/include/linux/kobject.h
+++ b/include/linux/kobject.h
@@ -87,6 +87,9 @@ static inline void kset_put(struct kset * k)
}
+extern struct kobject * kset_find_obj(struct kset *, char *);
+
+
struct subsystem {
struct kset kset;
struct rw_semaphore rwsem;