Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-sysfs.c Create Date:2022-07-28 17:02:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:void blk_unregister_queue(struct gendisk *disk)

Type:void

Parameter:

TypeParameterName
struct gendisk *disk
1023  q = queue
1025  If WARN_ON(!q) Then Return
1029  If Not blk_queue_registered(q) Then Return
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  If queue_is_mq(q) Then blk_mq_unregister_dev(disk_to_dev(disk), q)
1049  kobject_uevent - notify userspace by sending an uevent*@kobj: struct kobject that the action is happening to*@action: action that is happening* Returns 0 if kobject_uevent() is completed with success or the* corresponding error when it fails.
1050  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().
1051  blk_trace_remove_sysfs(disk_to_dev(disk))
1053  mutex_lock( & sysfs_lock)
1054  If elevator Then lv_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  kobject_put() - Decrement refcount for object.*@kobj: object.* Decrement the refcount, and if 0, call kobject_cleanup().
Caller
NameDescribe
del_gendisk