函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_kobj_path_length

函数原型:static int get_kobj_path_length(struct kobject *kobj)

返回类型:int

参数:

类型参数名称
struct kobject *kobj
131  length等于1
132  parent等于kobj
138  循环
139  如果(kobject_name(parent) == NULL)则返回:0
141  length加等于strlen(kobject_name(parent))加1
142  parent等于父设备指针
143 parent循环
144  返回:length
调用者
名称描述
kobject_get_pathkobject_get_path() - Allocate memory and fill in the path for @kobj.*@kobj: kobject in question, with which to build the path*@gfp_mask: the allocation type used to allocate the path* Return: The newly allocated memory, caller must free with kfree().