Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_kobj_path_length

Proto:static int get_kobj_path_length(struct kobject *kobj)

Type:int

Parameter:

TypeParameterName
struct kobject *kobj
131  length = 1
132  parent = kobj
138  Do
139  If (kobject_name(parent) == NULL) Then Return 0
141  length += strlen(kobject_name(parent)) + 1
142  parent = parent
143  When parent cycle
144  Return length
Caller
NameDescribe
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().