Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kobject_get_unless_zero

Proto:struct kobject *__must_check kobject_get_unless_zero(struct kobject *kobj)

Type:struct kobject

Parameter:

TypeParameterName
struct kobject *kobj
652  If Not kobj Then Return NULL
654  If Not kref_get_unless_zero - Increment refcount for object unless it is zero Then kobj = NULL
656  Return kobj
Caller
NameDescribe
kset_find_objkset_find_obj() - Search for object in kset.*@kset: kset we're looking in.*@name: object's name.* Lock kset via @kset->subsys, and iterate over @kset->list,* looking for a matching kobject. If matching object is found