函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:设置kobject名字

函数原型:int kobject_set_name_vargs(struct kobject *kobj, const char *fmt, va_list vargs)

返回类型:int

参数:

类型参数名称
struct kobject *kobj
const char *fmt
va_listvargs
286  如果设备对象名称且非fmt则返回:0
289  s等于kvasprintf_const(GFP_KERNEL, fmt, vargs)
290  如果非s则返回:负ENOMEM
299  如果strchr(s, '/')则
302  t等于kstrdup(s, GFP_KERNEL)
303  kfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
304  如果非t则返回:负ENOMEM
306  替换字符串中的所有字符
307  s等于t
309  kfree_const - conditionally free memory*@x: pointer to the memory* Function calls kfree only if @x is not in .rodata section.
310  设备对象名称等于s
312  返回:0
调用者
名称描述
kobject_set_namekobject_set_name() - Set the name of a kobject
kobject_add_varg