函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:lk_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.

函数原型:void blk_unregister_queue(struct gendisk *disk)

返回类型:void

参数:

类型参数名称
struct gendisk *disk
1023  q等于queue
1025  如果WARN_ON(!q)则返回
1029  如果非blk_queue_registered(q)则返回
1037  mutex_lock( & sysfs_lock)
1038  lk_queue_flag_clear - atomically clear a queue flag*@flag: flag to be cleared*@q: request queue
1039  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1041  mutex_lock( & sysfs_dir_lock)
1046  如果queue_is_mq(q)则blk_mq_unregister_dev(disk_to_dev(disk), q)
1049  通过发送一个uevent通知用户空间
1050  解除对象
1051  blk_trace_remove_sysfs(disk_to_dev(disk))
1053  mutex_lock( & sysfs_lock)
1054  如果elevatorlv_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.
1056  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1057  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1059  递减引用计数对象
调用者
名称描述
del_gendisk