函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kobject_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().

函数原型:char *kobject_get_path(struct kobject *kobj, gfp_t gfp_mask)

返回类型:char

参数:

类型参数名称
struct kobject *kobj
gfp_tgfp_mask
176  len等于get_kobj_path_length(kobj)
177  如果len恒等于0则返回:NULL
179  path等于分配内存并置零
180  如果非path则返回:NULL
182  fill_kobj_path(kobj, path, len)
184  返回:path
调用者
名称描述
kobject_uevent_envkobject_uevent_env - send an uevent with environmental data*@kobj: struct kobject that the action is happening to*@action: action that is happening*@envp_ext: pointer to environmental data* Returns 0 if kobject_uevent_env() is completed with success or the
kobject_renamekobject_rename() - Change the name of an object
kobject_move移动对象
kobject_synth_ueventkobject_synth_uevent - send synthetic uevent with arguments*@kobj: struct kobject for which synthetic uevent is to be generated*@buf: buffer containing action type and action args, newline is ignored*@count: length of buffer* Returns 0 if