Linux kernel Learning-3 main function (Follow Sina Weibo: Lonely Years of erosion (more than 4,000 technology sharing))

Source: Internet
Author: User
#ifdef RAMDISK//If a virtual disk is defined, the main memory will be reduced.
124 Main_memory_start + = Rd_init (Main_memory_start, ramdisk*1024);
#endif
The following is the initialization of all aspects of the kernel. It is best to follow the procedure of the call to go into the reading, actually look at
No, let's just put it on the next initialization call--This is the experience of experience?
126 Mem_init (main_memory_start,memory_end);
127 trap_init (); Trap Gate (Hardware interrupt vector) initialization. (kernel/traps.c,181 line)
Blk_dev_init (); Block device initialization. (kernel/blk_dev/ll_rw_blk.c,157 line)
129 Chr_dev_init (); Character device initialization. (kernel/chr_dev/tty_io.c,347 line)
Tty_init (); TTY initialization. (kernel/chr_dev/tty_io.c,105 line)
131 Time_init (); Set boot time

Linux kernel Learning-3 main function (Follow Sina Weibo: Lonely Years of erosion (more than 4,000 technology sharing))

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.