函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__bfq_deactivate_entity - update sched_data and service trees for* entity, so as to represent entity as inactive*@entity: the entity being deactivated.*@ins_into_idle_tree: if false, the entity will not be put into the* idle tree.

函数原型:bool __bfq_deactivate_entity(struct bfq_entity *entity, bool ins_into_idle_tree)

返回类型:bool

参数:

类型参数名称
struct bfq_entity *entity
boolins_into_idle_tree
1175  sd等于 the scheduler queue this entity belongs to
1179  如果非* Flag, true if the entity is on a tree (either the active or * the idle one of its service_tree) or is in service.则返回:false
1188  st等于bfq_entity_service_tree(entity)
1189  is_in_service等于entity恒等于ity in service
1191  q_calc_finish - assign the finish time to an entity.*@entity: the entity to act upon.*@service: the service to be charged to the entity.
1193  如果is_in_serviceity in service = NULL
1195  否则 amount of service received during the last service slot 等于0
1203  如果 tree the entity is enqueued into; %NULL if not on a tree 恒等于ree for active entities (i.e., those backlogged) q_active_extract - remove an entity from the active tree.*@st: the service_tree containing the tree.*@entity: the entity being removed.
1205  否则如果非is_in_service tree the entity is enqueued into; %NULL if not on a tree 恒等于ree for idle entities (i.e., not backlogged, with V < F_i)q_idle_extract - extract an entity from the idle tree.*@st: the service tree of the owning @entity.*@entity: the entity being removed.
1208  如果非ins_into_idle_tree或非q_gt - compare two timestamps.*@a: first ts.*@b: second ts.* Return @a > @b, dealing with wrapping correctly.q_forget_entity - do not consider entity any longer for scheduling*@st: the service tree.*@entity: the entity being removed.*@is_in_service: true if entity is currently the in-service entity.* Forget everything about @entity
1210  否则q_idle_insert - insert an entity into the idle tree.*@st: the service tree containing the tree.*@entity: the entity to insert.
1213  返回:true
调用者
名称描述
bfq_deactivate_entityq_deactivate_entity - deactivate an entity representing a bfq_queue