函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\fair.c Create Date:2022-07-27 10:38:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Enqueue an entity into the rb-tree:

函数原型:static void __enqueue_entity(struct cfs_rq *cfs_rq, struct sched_entity *se)

返回类型:void

参数:

类型参数名称
struct cfs_rq *cfs_rq
struct sched_entity *se
566  link等于rb_node
567  struct rb_node * parent = NULL
569  bool leftmost = true
574 link循环
575  parent等于link
576  entry等于rb_entry(parent, structsched_entity, run_node)
581  如果entity_before(se, entry)则
582  link等于rb_left
583  否则
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)
调用者
名称描述
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