Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject.c Create Date:2022-07-28 06:16:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kset_create_and_add() - Create a struct kset dynamically and add it to sysfs

Proto:struct kset *kset_create_and_add(const char *name, const struct kset_uevent_ops *uevent_ops, struct kobject *parent_kobj)

Type:struct kset

Parameter:

TypeParameterName
const char *name
const struct kset_uevent_ops *uevent_ops
struct kobject *parent_kobj
998  kset = kset_create() - Create a struct kset dynamically
999  If Not kset Then Return NULL
1001  error = kset_register() - Initialize and add a kset.*@k: kset.
1002  If error Then
1003  kfree(kset)
1004  Return NULL
1006  Return kset