函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:通过发送一个uevent通知用户空间

函数原型:int kobject_uevent(struct kobject *kobj, enum kobject_action action)

返回类型:int

参数:

类型参数名称
struct kobject *kobj
enum kobject_actionaction
641  返回:kobject_uevent_env - send an uevent with environmental data*@kobj: struct kobject that the action is happening to*@action: action that is happening*@envp_ext: pointer to environmental data* Returns 0 if kobject_uevent_env() is completed with success or the
调用者
名称描述
kobject_cleanup 释放kobj's资源
kset_register初始化并注册kset
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.
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_dev
__blk_mq_register_dev
register_disk
add_partitionMust be called either with bd_mutex held, before a disk can be opened or* after all disk users are gone.
blk_add_partitions
blk_integrity_add
blk_integrity_del
allocate_threshold_blocks
elv_register_queuelv_register_queue is called from either blk_register_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.
bdev_disk_changed