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_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.

Proto:int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, struct kobject *parent, const char *fmt, ...)

Type:int

Parameter:

TypeParameterName
struct kobject *kobj
struct kobj_type *ktype
struct kobject *parent
const char *fmt
470  kobject_init() - Initialize a kobject structure
472  va_start(args, fmt)
473  retval = kobject_add_varg(kobj, parent, fmt, args)
474  va_end(args)
476  Return retval