函数逻辑报告

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_init() - Initialize a kobject structure

函数原型:void kobject_init(struct kobject *kobj, struct kobj_type *ktype)

返回类型:void

参数:

类型参数名称
struct kobject *kobj
struct kobj_type *ktype
353  如果非kobj
354  err_str等于"invalid kobject pointer!"
355  转到:error
357  如果非ktype
358  err_str等于"must have a ktype to be initialized properly!\n"
359  转到:error
361  如果state_initialized
363  打印错误信息("kobject (%p): tried to init an initialized object, something is seriously wrong.\n", kobj)
365  dump_stack()
368  kobject_init_internal(kobj)
369  设备对象类型指针等于ktype
370  返回
372  error :
373  打印错误信息("kobject (%p): %s\n", kobj, err_str)
374  dump_stack()
调用者
名称描述
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().
klp_init_func_early
elevator_alloc
cdev_allocdev_alloc() - allocate a cdev structure* Allocates and returns a cdev structure, or NULL on failure.