函数逻辑报告

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_add_varg

函数原型:static __printf(3, 0) int kobject_add_varg(struct kobject *kobj, struct kobject *parent, const char *fmt, va_list vargs)

返回类型:int

参数:

类型参数名称
struct kobject *kobj
struct kobject *parent
const char *fmt
va_listvargs
384  retval等于设置kobject名字
385  如果retval
386  打印错误信息("kobject: can not set name properly!\n")
387  返回:retval
389  父设备指针等于parent
390  返回:kobject_add_internal(kobj)
调用者
名称描述
kobject_addkobject_add() - The main kobject add function.*@kobj: the kobject to add*@parent: pointer to the parent of the kobject.*@fmt: format to name the kobject with.* The kobject name is set and added to the kobject hierarchy in this* function.
kobject_init_and_addkobject_init_and_add() - Initialize a kobject structure and add it to* the kobject hierarchy.*@kobj: pointer to the kobject to initialize*@ktype: pointer to the ktype for this kobject.*@parent: pointer to the parent of this kobject.