Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\fair.c Create Date:2022-07-28 09:38:09
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Enqueue an entity into the rb-tree:

Proto:static void __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)

Type:void

Parameter:

TypeParameterName
struct cfs_rq *cfs_rq
struct sched_entity *se
566  link = rb_node
567  struct rb_node * parent = NULL
569  bool leftmost = true
574  When link cycle
575  parent = link
576  entry = rb_entry(parent, structsched_entity, run_node)
581  If entity_before(se, entry) Then
582  link = rb_left
583  Else
584  link = rb_right
585  leftmost = false
589  rb_link_node( & run_node, parent, link)
590  rb_insert_color_cached( & run_node, & tasks_timeline, leftmost)
Caller
NameDescribe
enqueue_entityMIGRATION* dequeue* update_curr()* update_min_vruntime()* vruntime -= min_vruntime* enqueue* update_curr()* update_min_vruntime()* vruntime += min_vruntime* this way the vruntime transition between RQs is done when both* min_vruntime are up-to-date
put_prev_entity