Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq.c Create Date:2022-07-28 17:11:25
Last Modify:2020-03-17 23:18:05 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:blk_mq_init_queue

Proto:struct request_queue *blk_mq_init_queue(struct blk_mq_tag_set *set)

Type:struct request_queue

Parameter:

TypeParameterName
struct blk_mq_tag_set *set
2663  uninit_q = lk_alloc_queue_node - allocate a request queue*@gfp_mask: memory allocation flags*@node_id: NUMA node to allocate memory from
2664  If Not uninit_q Then Return ERR_PTR( - ENOMEM)
2671  q = blk_mq_init_allocated_queue(set, uninit_q, false)
2672  If IS_ERR(q) Then lk_cleanup_queue - shutdown a request queue*@q: request queue to shutdown* Mark @q DYING, drain all pending requests, mark @q DEAD, destroy and* put it. All future requests will be failed immediately with -ENODEV.
2675  Return q
Caller
NameDescribe
blk_mq_init_sq_queueHelper for setting up a queue with mq ops, given queue depth, and* the passed in mq ops flags.
bsg_setup_queuesg_setup_queue - Create and add the bsg hooks so we can receive requests*@dev: device to attach bsg device to*@name: device to give bsg device*@job_fn: bsg job handler*@timeout: timeout handler function pointer*@dd_job_size: size of LLD data needed for