Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bfq-wf2q.c Create Date:2022-07-28 17:59:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__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.

Proto:bool __bfq_deactivate_entity(struct bfq_entity *entity, bool ins_into_idle_tree)

Type:bool

Parameter:

TypeParameterName
struct bfq_entity *entity
boolins_into_idle_tree
1175  sd = the scheduler queue this entity belongs to
1179  If Not * Flag, true if the entity is on a tree (either the active or * the idle one of its service_tree) or is in service. Then Return 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  If is_in_service Then ity in service = NULL
1195  Else amount of service received during the last service slot = 0
1203  If tree the entity is enqueued into; %NULL if not on a tree == ree for active entities (i.e., those backlogged) Then q_active_extract - remove an entity from the active tree.*@st: the service_tree containing the tree.*@entity: the entity being removed.
1205  Else if Not 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) Then q_idle_extract - extract an entity from the idle tree.*@st: the service tree of the owning @entity.*@entity: the entity being removed.
1208  If Not ins_into_idle_tree || Not q_gt - compare two timestamps.*@a: first ts.*@b: second ts.* Return @a > @b, dealing with wrapping correctly. Then 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  Else q_idle_insert - insert an entity into the idle tree.*@st: the service tree containing the tree.*@entity: the entity to insert.
1213  Return true
Caller
NameDescribe
bfq_deactivate_entityq_deactivate_entity - deactivate an entity representing a bfq_queue