函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bfq_lookup_next_entity

函数原型:static struct bfq_entity *bfq_lookup_next_entity(struct bfq_sched_data *sd, bool expiration)

返回类型:struct bfq_entity

参数:

类型参数名称
struct bfq_sched_data *sd
boolexpiration
1453  st等于array of service trees, one per ioprio_class
1454  idle_class_st等于stBFQ_IOPRIO_CLASSES减1
1455  struct bfq_entity * entity = NULL
1456  class_idx等于0
1465  如果ime_is_before_jiffies(a) return true if a is before jiffies (last time CLASS_IDLE was served + BFQ_CL_IDLE_TIMEOUT)则
1467  如果非RB_EMPTY_ROOT( & ree for active entities (i.e., those backlogged) )则class_idx等于BFQ_IOPRIO_CLASSES减1
1470  last time CLASS_IDLE was served 等于jiffies
1477 class_idx小于BFQ_IOPRIO_CLASSES循环
1493  entity等于__bfq_lookup_next_entity - return the first eligible entity in @st
1497  如果entity退出
1501  如果非entity则返回:NULL
1504  返回:entity
调用者
名称描述
bfq_update_next_in_serviceq_update_next_in_service - update sd->next_in_service*@sd: sched_data for which to perform the update