Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:q_update_next_in_service - update sd->next_in_service*@sd: sched_data for which to perform the update

Proto:static bool bfq_update_next_in_service(struct bfq_sched_data *sd, struct bfq_entity *new_entity, bool expiration)

Type:bool

Parameter:

TypeParameterName
struct bfq_sched_data *sd
struct bfq_entity *new_entity
boolexpiration
78  next_in_service = head-of-line entity (see comments above)
79  bool parent_sched_may_change = false
80  bool change_without_lookup = false
93  If new_entity && new_entity != head-of-line entity (see comments above) Then
100  change_without_lookup = true
107  If next_in_service Then
123  If change_without_lookup Then next_in_service = new_entity
127  If Not change_without_lookup Then next_in_service = bfq_lookup_next_entity(sd, expiration)
130  If next_in_service Then
131  new_budget_triggers_change = bfq_update_parent_budget(next_in_service)
134  parent_sched_may_change = Not head-of-line entity (see comments above) || new_budget_triggers_change
138  head-of-line entity (see comments above) = next_in_service
140  If Not next_in_service Then Return parent_sched_may_change
143  Return parent_sched_may_change
Caller
NameDescribe
bfq_activate_requeue_entityq_activate_requeue_entity - activate or requeue an entity representing a* bfq_queue, and activate, requeue or reposition* all ancestors for which such an update becomes* necessary
bfq_deactivate_entityq_deactivate_entity - deactivate an entity representing a bfq_queue
bfq_get_next_queueGet next queue for service.