函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kobject.c Create Date:2022-07-27 07:13:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:解除对象

函数原型:void kobject_del(struct kobject *kobj)

返回类型:void

参数:

类型参数名称
struct kobject *kobj
614  如果非kobj则返回
617  sd等于 sysfs directory entry
618  ktype等于get_ktype(kobj)
620  如果ktypesysfs_remove_groups(kobj, default_groups)
623  sysfs_remove_dir(kobj)
624  sysfs_put(sd)
626  state_in_sysfs等于0
627  move the kobject from its kset's list
628  递减引用计数对象
629  父设备指针 = NULL
调用者
名称描述
kobject_cleanup 释放kobj's资源
kset_unregister移除kset
__threshold_remove_blocks
threshold_remove_bank
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_unregister_queuelk_unregister_queue - counterpart of blk_register_queue()*@disk: Disk of which the request queue should be unregistered from sysfs.* Note: the caller is responsible for guaranteeing that this function is called* after blk_register_queue() has finished.
blk_mq_unregister_hctx
blk_mq_unregister_dev
__blk_mq_register_dev
blk_integrity_del
__threshold_add_blocks
elv_unregister_queuelv_unregister_queue is called from either blk_unregister_queue or* elevator_switch, elevator switch is prevented from being happen* in the two paths, so it is safe to not hold q->sysfs_lock.