函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kernel_init

函数原型:static int __ref kernel_init(void *unused)

返回类型:int

参数:

类型参数名称
void *unused
1110  kernel_init_freeable()
1112  async_synchronize_full - synchronize all asynchronous function calls* This function waits until all asynchronous function calls have been done.
1113  ftrace_free_init_mem()
1114  free_initmem()
1115  mark_readonly()
1121  pti_finalize()
1123  system_state等于SYSTEM_RUNNING
1124  numa_default_policy()
1126  Inform RCU of the end of the in-kernel boot sequence.
1128  如果ramdisk_execute_command
1129  ret等于run_init_process(ramdisk_execute_command)
1130  如果非ret则返回:0
1132  打印错误信息("Failed to execute %s (error %d)\n", ramdisk_execute_command, ret)
1142  如果execute_command
1143  ret等于run_init_process(execute_command)
1144  如果非ret则返回:0
1146  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
1149  如果非try_to_run_init_process("/sbin/init")或非try_to_run_init_process("/etc/init")或非try_to_run_init_process("/bin/init")或非try_to_run_init_process("/bin/sh")则返回:0
1155  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.