1KOBJECT_CREATE_AND_A(9) Driver Basics KOBJECT_CREATE_AND_A(9)
2
3
4
6 kobject_create_and_add - create a struct kobject dynamically and
7 register it with sysfs
8
10 struct kobject * kobject_create_and_add(const char * name,
11 struct kobject * parent);
12
14 name
15 the name for the kset
16
17 parent
18 the parent kobject of this kobject, if any.
19
21 This function creates a kobject structure dynamically and registers it
22 with sysfs. When you are finished with this structure, call kobject_put
23 and the structure will be dynamically freed when it is no longer being
24 used.
25
26 If the kobject was not able to be created, NULL will be returned.
27
29Kernel Hackers Manual 2.6. June 2019 KOBJECT_CREATE_AND_A(9)