Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bsg_unregister_queue

Proto:void bsg_unregister_queue(struct request_queue *q)

Type:void

Parameter:

TypeParameterName
struct request_queue *q
391  bcd = bsg_dev
393  If Not class_dev Then Return
396  mutex_lock( & bsg_mutex)
397  dr_remove() - Remove an ID from the IDR
398  If sysfs directory entry Then sysfs_remove_link( & * queue kobject, "bsg")
400  device_unregister(class_dev)
401  class_dev = NULL
402  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.
Caller
NameDescribe
bsg_remove_queue