Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\main.c Create Date:2022-07-28 13:53:51
Last Modify:2022-05-23 13:07:03 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kernel_init

Proto:static int __ref kernel_init(void *unused)

Type:int

Parameter:

TypeParameterName
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  If ramdisk_execute_command Then
1129  ret = run_init_process(ramdisk_execute_command)
1130  If Not ret Then Return 0
1132  pr_err("Failed to execute %s (error %d)\n", ramdisk_execute_command, ret)
1142  If execute_command Then
1143  ret = run_init_process(execute_command)
1144  If Not ret Then Return 0
1146  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
1149  If Not try_to_run_init_process("/sbin/init") || Not try_to_run_init_process("/etc/init") || Not try_to_run_init_process("/bin/init") || Not try_to_run_init_process("/bin/sh") Then Return 0
1155  panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.