Linux Kernel Function Start_kernel ()-General Linux technology-Linux programming and kernel information. For more information, see the following. Start_kernel () calls a series of initialization functions to complete the kernel settings. Some of these actions are public, and others are executed only after configuration.
In the start_kernel () function,
Output Linux version information (printk (linux_banner ))
Set the architecture-related environment (setup_arch ())
Extract and analyze the core startup parameters (read the parameters from the environment variables, set the corresponding flag to wait for processing, (parse_options ())
Console initialization (initialize before PCI for output information, console_init ())
Profile data structure initialization (prof_buffer and prof_len variables)
Create a signal queue cache ("signal_queue", signals_init ())
Initialize memory inode table (inode_init ())
Create a memory file descriptor table ("filp_cache", file_table_init ())
Check the architecture Vulnerability (for alpha, this function is empty, check_bugs ())
Initialize the remaining CPU of the SMP machine (except the current Boot CPU) (this function is null for kernels without SMP configuration, smp_init ())
Start the init process (create the first core thread, call the init () function, the original execution sequence calls cpu_idle () for scheduling, init ())
So far start_kernel () has ended, and the basic core environment has been established.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service