Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bfq_lookup_next_entity

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

Type:struct bfq_entity

Parameter:

TypeParameterName
struct bfq_sched_data *sd
boolexpiration
1453  st = array of service trees, one per ioprio_class
1454  idle_class_st = st + BFQ_IOPRIO_CLASSES - 1
1455  struct bfq_entity * entity = NULL
1456  class_idx = 0
1465  If ime_is_before_jiffies(a) return true if a is before jiffies (last time CLASS_IDLE was served + BFQ_CL_IDLE_TIMEOUT) Then
1467  If Not RB_EMPTY_ROOT( & ree for active entities (i.e., those backlogged) ) Then class_idx = BFQ_IOPRIO_CLASSES - 1
1470  last time CLASS_IDLE was served = jiffies
1477  When class_idx < BFQ_IOPRIO_CLASSES cycle
1493  entity = __bfq_lookup_next_entity - return the first eligible entity in @st
1497  If entity Then Break
1501  If Not entity Then Return NULL
1504  Return entity
Caller
NameDescribe
bfq_update_next_in_serviceq_update_next_in_service - update sd->next_in_service*@sd: sched_data for which to perform the update