Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kobject_del() - Unlink kobject from hierarchy.*@kobj: object.* This is the function that should be called to delete an object* successfully added via kobject_add().

Proto:void kobject_del(struct kobject *kobj)

Type:void

Parameter:

TypeParameterName
struct kobject *kobj
614  If Not kobj Then Return
617  sd = sysfs directory entry
618  ktype = get_ktype(kobj)
620  If ktype Then sysfs_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  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
629  parent = NULL
Caller
NameDescribe
kobject_cleanupkobject_cleanup - free kobject resources.*@kobj: object to cleanup
kset_unregisterkset_unregister() - Remove a kset.*@k: 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