diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2007-12-04 00:31:08 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-01-24 23:40:09 -0500 |
commit | 244f6cee9a928103132a722292bfa0eb84114b07 (patch) | |
tree | 4ef3d80c4bd29533dcf5479c51376aa16c36b670 /include/linux | |
parent | e86000d042d23904bbb609af2f8618a541cf129b (diff) |
kobject: add kobject_add_ng function
This is what the kobject_add function is going to become.
Add this to the kernel and then we can convert the tree over to use it.
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-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 bdf4f7c45f19..57eea4cb940d 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h | |||
@@ -81,6 +81,9 @@ static inline const char * kobject_name(const struct kobject * kobj) | |||
81 | extern void kobject_init(struct kobject *); | 81 | extern void kobject_init(struct kobject *); |
82 | extern void kobject_init_ng(struct kobject *kobj, struct kobj_type *ktype); | 82 | extern void kobject_init_ng(struct kobject *kobj, struct kobj_type *ktype); |
83 | extern int __must_check kobject_add(struct kobject *); | 83 | extern int __must_check kobject_add(struct kobject *); |
84 | extern int __must_check kobject_add_ng(struct kobject *kobj, | ||
85 | struct kobject *parent, | ||
86 | const char *fmt, ...); | ||
84 | extern void kobject_del(struct kobject *); | 87 | extern void kobject_del(struct kobject *); |
85 | 88 | ||
86 | extern int __must_check kobject_rename(struct kobject *, const char *new_name); | 89 | extern int __must_check kobject_rename(struct kobject *, const char *new_name); |