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() - 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.

Proto:int kobject_add(struct kobject *kobj, struct kobject *parent, const char *fmt, ...)

Type:int

Parameter:

TypeParameterName
struct kobject *kobj
struct kobject *parent
const char *fmt
432  If Not kobj Then Return -EINVAL
435  If Not state_initialized Then
436  pr_err("kobject '%s' (%p): tried to add an uninitialized object, something is seriously wrong.\n", kobject_name(kobj), kobj)
438  dump_stack()
439  Return -EINVAL
441  va_start(args, fmt)
442  retval = kobject_add_varg(kobj, parent, fmt, args)
443  va_end(args)
445  Return retval
Caller
NameDescribe
kobject_create_and_addkobject_create_and_add() - Create a struct kobject dynamically and* register it with sysfs.*@name: the name for the kobject*@parent: the parent kobject of this kobject, if any.* This function creates a kobject structure dynamically and registers it
__threshold_add_blocks
threshold_create_bank
klp_init_object
klp_init_patch
blk_register_queuelk_register_queue - register a block layer queue with sysfs*@disk: Disk of which the request queue should be registered with sysfs.
blk_mq_register_hctx
__blk_mq_register_dev