mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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>
This commit is contained in:
parent
b727c70289
commit
3f9e3ee9dc
2 changed files with 66 additions and 18 deletions
|
@ -91,6 +91,9 @@ extern int __must_check kobject_init_and_add(struct kobject *kobj,
|
|||
|
||||
extern void kobject_del(struct kobject *);
|
||||
|
||||
extern struct kobject * __must_check kobject_create_and_add(const char *name,
|
||||
struct kobject *parent);
|
||||
|
||||
extern int __must_check kobject_rename(struct kobject *, const char *new_name);
|
||||
extern int __must_check kobject_move(struct kobject *, struct kobject *);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue