函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:update_min_vruntime

函数原型:static void update_min_vruntime(struct cfs_rq *cfs_rq)

返回类型:void

参数:

类型参数名称
struct cfs_rq *cfs_rq
531  curr等于'curr' points to currently running entity on this cfs_rq.* It is set to NULL otherwise (i.e when none are currently running).
532  leftmost等于Same as rb_first(), but O(1) ( & tasks_timeline)
534  vruntime等于min_vruntime
536  如果curr
537  如果on_rqvruntime等于vruntime
539  否则curr = NULL
543  如果leftmost
545  se等于rb_entry(leftmost, structsched_entity, run_node)
547  如果非currvruntime等于vruntime
549  否则vruntime等于min_vruntime(vruntime, vruntime)
554  min_vruntime等于Scheduling class tree data structure manipulation methods:
556  smp_wmb()
557  min_vruntime_copy等于min_vruntime
调用者
名称描述
update_curr更新当前进程运行时间,包括虚拟运行时间
dequeue_entity