函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\core.c Create Date:2022-07-27 10:36:21
Last Modify:2022-05-22 13:40:38 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Perform scheduler related setup for a newly forked process p.* p is forked by current.* __sched_fork() is basic setup used by init_idle() too:

函数原型:static void __sched_fork(unsigned long clone_flags, struct task_struct *p)

返回类型:void

参数:

类型参数名称
unsigned longclone_flags
struct task_struct *p
2686  归属队列等于0
2688  on_rq等于0
2689  exec_start等于0
2690  sum_exec_runtime等于0
2691  prev_sum_exec_runtime等于0
2692  nr_migrations等于0
2693  vruntime等于0
2694  初始化链表头
2705  RB_CLEAR_NODE( & rb_node)
2706  init_dl_task_timer( & dl)
2707  init_dl_inactive_task_timer( & dl)
2708  __dl_clear_params(p)
2710  初始化链表头
2711  timeout等于0
2712  time_slice等于sched_rr_timeslice
2713  on_rq等于0
2714  on_list等于0
2723  init_numa_balancing(clone_flags, p)
调用者
名称描述
sched_fork调度进程
init_idle_idle - set up an idle thread for a given CPU*@idle: task in question*@cpu: CPU the idle task belongs to* NOTE: this function does not set the idle thread's NEED_RESCHED* flag, to make booting more robust.