函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\main.c Create Date:2022-07-27 15:16:06
Last Modify:2022-05-23 13:07:03 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kernel_init_freeable

函数原型:static noinline void __init kernel_init_freeable(void)

返回类型:void

参数:

1175  wait_for_completion: - waits for completion of a task*@x: holds the state of this particular completion* This waits to be signaled for completion of a specific task. It is NOT* interruptible and there is no timeout.* See also similar routines (i
1178  gfp_allowed_mask is set to GFP_BOOT_MASK during early boot to restrict what* GFP flags are used before interrupts are enabled等于__GFP_BITS_MASK
1183  set_mems_allowed(The following particular system nodemasks and operations* on them manage all possible and online nodes.[N_MEMORY])
1185  cad_pid等于task_pid(当前进程)
1187  smp_prepare_cpus(setup_max_cpus)
1189  workqueue_init - bring workqueue subsystem fully online* This is the latter half of two-staged workqueue subsystem initialization* and invoked as soon as kthreads can be created and scheduled
1191  init_mm_internals()
1193  do_pre_smp_initcalls()
1194  lockup_detector_init()
1196  smp_init()
1197  sched_init_smp()
1199  page_alloc_init_late()
1201  扩展页初始化
1203  Ok, the machine is now initialized. None of the devices* have been touched yet, but the CPU subsystem is up and* running, and memory and process management works.* Now we can finally start doing some real work..
1205  console_on_rootfs()
1212  如果非ramdisk_execute_commandramdisk_execute_command等于"/init"
1215  如果ksys_access((constchar__user * )ramdisk_execute_command, 0)不等于0则
1217  ramdisk_execute_command = NULL
1218  prepare_namespace()
1230  integrity_load_keys()
调用者
名称描述
kernel_init