函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Get the first elevator providing the features required by the request queue.* Default to "none" if no matching elevator is found.

函数原型:static struct elevator_type *elevator_get_by_features(struct request_queue *q)

返回类型:struct elevator_type

参数:

类型参数名称
struct request_queue *q
643  struct elevator_type * e, * found = NULL
645  加自旋锁
648  如果elv_support_features(elevator_features, required_elevator_features)则
650  found等于e
651  退出
655  如果found且非判断模块是否处于活动状态found = NULL
658  自旋锁解锁
659  返回:found
调用者
名称描述
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