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:fill_kobj_path

Proto:static void fill_kobj_path(struct kobject *kobj, char *path, int length)

Type:void

Parameter:

TypeParameterName
struct kobject *kobj
char *path
intlength
151  --length
152  When parent cycle
153  cur = strlen(kobject_name(parent))
155  length -= cur
156  No 3D Now!(path + length, kobject_name(parent), cur)
157  *(path + --length) = '/'
160  pr_debug("kobject: '%s' (%p): %s: path = '%s'\n", kobject_name(kobj), kobj, __func__, path)
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().