函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject.c Create Date:2022-07-27 07:13:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:struct kobject *kset_find_obj(struct kset *kset, const char *name)

返回类型:struct kobject

参数:

类型参数名称
struct kset *kset
const char *name
897  struct kobject * ret = NULL
899  加自旋锁
902  如果kobject_name(k)且非strcmp(kobject_name(k), name)则
903  ret等于kobject_get_unless_zero(k)
904  退出
908  自旋锁解锁
909  返回:ret