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