diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-11-05 16:16:15 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:10 -0500 |
commit | 3f9e3ee9dc3605e5c593b5d708494571fb0d3970 (patch) | |
tree | b5490463c14b919f88ec18833846a38cfb621aa3 /include/linux/kobject.h | |
parent | b727c702896f88d2ff6c3e03bd011d7c3dffe3e1 (diff) |
kobject: add kobject_create_and_add function
This lets users create dynamic kobjects much easier.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/kobject.h')
-rw-r--r-- | include/linux/kobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index f91aeb745664..33e7a6142a75 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -91,6 +91,9 @@ extern int __must_check kobject_init_and_add(struct kobject *kobj, | |||
91 | 91 | ||
92 | extern void kobject_del(struct kobject *); | 92 | extern void kobject_del(struct kobject *); |
93 | 93 | ||
94 | extern struct kobject * __must_check kobject_create_and_add(const char *name, | ||
95 | struct kobject *parent); | ||
96 | |||
94 | extern int __must_check kobject_rename(struct kobject *, const char *new_name); | 97 | extern int __must_check kobject_rename(struct kobject *, const char *new_name); |
95 | extern int __must_check kobject_move(struct kobject *, struct kobject *); | 98 | extern int __must_check kobject_move(struct kobject *, struct kobject *); |
96 | 99 | ||