Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kobject_add_varg

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

Type:int

Parameter:

TypeParameterName
struct kobject *kobj
struct kobject *parent
const char *fmt
va_listvargs
384  retval = kobject_set_name_vargs() - Set the name of a kobject.*@kobj: struct kobject to set the name of*@fmt: format string used to build the name*@vargs: vargs to format the string.
385  If retval Then
386  pr_err("kobject: can not set name properly!\n")
387  Return retval
389  parent = parent
390  Return kobject_add_internal(kobj)
Caller
NameDescribe
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.