Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:blk_mq_init_sched

Proto:int blk_mq_init_sched(struct request_queue *q, struct elevator_type *e)

Type:int

Parameter:

TypeParameterName
struct request_queue *q
struct elevator_type *e
500  If Not e Then
501  elevator = NULL
502  Max # of requests = queue_depth
503  Return 0
511  Max # of requests = 2 * min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(unsignedint, queue_depth, Default maximum )
515  ret = blk_mq_sched_alloc_tags(q, hctx, i)
516  If ret Then Go to err
520  ret = init_sched(q, e)
521  If ret Then Go to err
524  blk_mq_debugfs_register_sched(q)
527  If init_hctx Then
528  ret = init_hctx(hctx, i)
529  If ret Then
530  eq = elevator
534  Return ret
537  blk_mq_debugfs_register_sched_hctx(q, hctx)
540  Return 0
542  err :
543  alled in either blk_queue_cleanup or elevator_switch, tagset* is required for freeing requests
544  alled in queue's release handler, tagset has gone away
545  elevator = NULL
546  Return ret
Caller
NameDescribe
elevator_init_mqFor a device queue that has no required features, use the default elevator* settings. Otherwise, use the first elevator available matching the required* features. If no suitable elevator is find or if the chosen elevator
elevator_switch_mq