Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_sysfs_register

Proto:int blk_mq_sysfs_register(struct request_queue *q)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
368  ret = 0
370  mutex_lock( & sysfs_dir_lock)
371  If Not mq_sysfs_init_done Then Go to unlock
375  ret = blk_mq_register_hctx(hctx)
376  If ret Then Break
380  unlock :
381  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.
383  Return ret