函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:For 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

函数原型:void elevator_init_mq(struct request_queue *q)

返回类型:void

参数:

类型参数名称
struct request_queue *q
673  如果非elv_support_iosched(q)则返回
676  WARN_ON_ONCE(st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from)
678  如果此条件成立可能性小(为编译器优化)(elevator)则返回
681  如果非required_elevator_featurese等于For single queue devices, default to using mq-deadline. If we have multiple* queues or mq-deadline is not available, default to "none".
683  否则e等于Get the first elevator providing the features required by the request queue.* Default to "none" if no matching elevator is found.
685  如果非e则返回
688  blk_mq_freeze_queue(q)
689  blk_mq_quiesce_queue(q)
691  err等于blk_mq_init_sched(q, e)
693  blk_mq_unquiesce_queue(q)
694  blk_mq_unfreeze_queue(q)
696  如果err
697  打印警告信息("\"%s\" elevator initialization failed, falling back to \"none\"\n", elevator_name)
699  elevator_put(e)
调用者
名称描述
blk_mq_init_allocated_queue
__device_add_disk__device_add_disk - add disk information to kernel list*@parent: parent device for the disk*@disk: per-device partitioning information*@groups: Additional per-device sysfs groups*@register_queue: register the queue if set to true* This function registers