Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kset_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

Proto:struct kobject *kset_find_obj(struct kset *kset, const char *name)

Type:struct kobject

Parameter:

TypeParameterName
struct kset *kset
const char *name
897  struct kobject * ret = NULL
899  spin_lock( & list_lock)
902  If kobject_name(k) && Not strcmp(kobject_name(k), name) Then
903  ret = kobject_get_unless_zero(k)
904  Break
908  spin_unlock( & list_lock)
909  Return ret