函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-mq-sched.c Create Date:2022-07-27 18:50:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:blk_mq_init_sched

函数原型:int blk_mq_init_sched(struct request_queue *q, struct elevator_type *e)

返回类型:int

参数:

类型参数名称
struct request_queue *q
struct elevator_type *e
500  如果非e
501  elevator = NULL
502  Max # of requests 等于queue_depth
503  返回: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  如果ret则转到:err
520  ret等于init_sched(q, e)
521  如果ret则转到:err
524  blk_mq_debugfs_register_sched(q)
527  如果init_hctx
528  ret等于init_hctx(hctx, i)
529  如果ret
530  eq等于elevator
534  返回:ret
537  blk_mq_debugfs_register_sched_hctx(q, hctx)
540  返回: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  返回:ret
调用者
名称描述
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