Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kobject_init() - Initialize a kobject structure

Proto:void kobject_init(struct kobject *kobj, struct kobj_type *ktype)

Type:void

Parameter:

TypeParameterName
struct kobject *kobj
struct kobj_type *ktype
353  If Not kobj Then
354  err_str = "invalid kobject pointer!"
355  Go to error
357  If Not ktype Then
358  err_str = "must have a ktype to be initialized properly!\n"
359  Go to error
361  If state_initialized Then
363  pr_err("kobject (%p): tried to init an initialized object, something is seriously wrong.\n", kobj)
365  dump_stack()
368  kobject_init_internal(kobj)
369  ktype = ktype
370  Return
372  error :
373  pr_err("kobject (%p): %s\n", kobj, err_str)
374  dump_stack()
Caller
NameDescribe
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.
kobject_createkobject_create() - Create a struct kobject dynamically.* This function creates a kobject structure dynamically and sets it up* to be a "dynamic" kobject with a default release function set up.
klp_init_object_early
klp_init_patch_early
padata_allocpadata_alloc - allocate and initialize a padata instance and specify* cpumasks for serial and parallel workers
blk_alloc_queue_nodelk_alloc_queue_node - allocate a request queue*@gfp_mask: memory allocation flags*@node_id: NUMA node to allocate memory from
blk_mq_hctx_kobj_init
blk_mq_sysfs_init
cdev_initdev_init() - initialize a cdev structure*@cdev: the structure to initialize*@fops: the file_operations for this device* Initializes @cdev, remembering @fops, making it ready to add to the* system with cdev_add().