Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void bfq_forget_entity(struct bfq_service_tree *st, struct bfq_entity *entity, bool is_in_service)

Type:void

Parameter:

TypeParameterName
struct bfq_service_tree *st
struct bfq_entity *entity
boolis_in_service
651  bfqq = bfq_entity_to_bfqq(entity)
653  * 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
654  scheduler weight sum; active and idle entities contribute to it -= weight of the queue
655  If is_in_service Then Return
658  If bfqq Then Task holds one reference to the queue, dropped when task exits. Each rq* in-flight on this queue also holds a reference, dropped when rq is freed.* Scheduler lock must be held here. Recall not to use bfqq after calling* this function on it.
660  Else bfqg_and_blkg_put(container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(entity, structbfq_group, entity))
Caller
NameDescribe
bfq_put_idle_entityq_put_idle_entity - release the idle tree ref of an entity.*@st: service tree for the entity.*@entity: the entity being released.
__bfq_deactivate_entity__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.