函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:初始化调度器数据结构并创建运行队列

函数原型:void __init sched_init(void)

返回类型:void

参数:

6574  ptr等于0
6577  wait_bit_init()
6585  如果ptr
6586  ptr等于分配内存并置零
6614  init_rt_bandwidth( & def_rt_bandwidth, global_rt_period(), global_rt_runtime())
6615  init_dl_bandwidth( & def_dl_bandwidth, global_rt_period(), global_rt_runtime())
6635  遍历可用CPU(i)
6638  rq等于cpu_rq(i)
6639  raw_spin_lock_init( & 运行队列锁)
6640  可运行进程数等于0
6641  calc_load_active等于0
6642  calc_load related fields 等于jiffies5 sec intervals
6643  init_cfs_rq( & cfs)
6644  init_rt_rq( & rt)
6645  init_dl_rq( & dl)
6673  rt_runtime等于rt_runtime
6700  hrtick_rq_init(rq)
6701  atomic_set( & nr_iowait, 0)
6704  set_load_weight( & init_task, false)
6709  mmgrab() - Pin a &struct mm_struct
6710  通知底层不需要切换虚拟地址空间
6718  _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.
6720  calc_load_update等于jiffies5 sec intervals
6725  init_sched_fair_class()
6727  init_schedstats()
6729  psi_init()
6731  init_uclamp()
6733  scheduler_running等于1
调用者
名称描述
start_kernel启动内核