函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:q_update_next_in_service - update sd->next_in_service*@sd: sched_data for which to perform the update

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

返回类型:bool

参数:

类型参数名称
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  如果new_entitynew_entity不等于head-of-line entity (see comments above)
100  change_without_lookup = true
107  如果next_in_service
123  如果change_without_lookupnext_in_service等于new_entity
127  如果非change_without_lookupnext_in_service等于bfq_lookup_next_entity(sd, expiration)
130  如果next_in_service
131  new_budget_triggers_change等于bfq_update_parent_budget(next_in_service)
134  parent_sched_may_change等于非head-of-line entity (see comments above) new_budget_triggers_change
138  head-of-line entity (see comments above) 等于next_in_service
140  如果非next_in_service则返回:parent_sched_may_change
143  返回:parent_sched_may_change
调用者
名称描述
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.