函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kobject_get_unless_zero

函数原型:struct kobject *__must_check kobject_get_unless_zero(struct kobject *kobj)

返回类型:struct kobject

参数:

类型参数名称
struct kobject *kobj
652  如果非kobj则返回:NULL
654  如果非kref_get_unless_zero - Increment refcount for object unless it is zerokobj = NULL
656  返回:kobj
调用者
名称描述
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
get_disk_and_module
cdev_get