Linux Kernel learning experience

Source: Internet
Author: User
Linux Kernel learning experience-general Linux technology-Linux programming and kernel information. The following is a detailed description. To be honest, learning Linux kernel is an extremely difficult task and requires perseverance. However, those with perseverance may not really understand the Linux kernel. I personally feel that learning Linux kernel requires a strong interest in the implementation of the operating system, a good starting point, and a theoretical basis.

As mentioned above: interest, starting point, and theoretical basis are all necessary.

The theoretical basis is that you need to understand the basic concepts of the operating system, what is the operating system, memory management and process management in the operating system (I personally think this is a difficult point in the operating system, in addition, we need to understand what is interrupt and what is system call. The other is to figure out the concept of address space: What are the differences between virtual addresses, linear addresses, and physical addresses. In addition, different operating systems have different understandings of these addresses. What is the difference between converting virtual addresses into linear addresses in windows and linux environments? These things require certain concepts.

Interest is needed and can be cultivated. You need to have a chance to try it yourself. Remember, when we were a junior, we had a course called an operating system internship, the course materials use MIT's postgraduate teaching materials. This course is actually about completing six internships on the operating system and completing these six internships, that is, creating your own operating system. In this course, you can clearly understand the Startup Process of the operating system and how the processor switches from the real mode to the protection mode under the X86 architecture. You can clearly understand what is going on in-memory segment-page management, and how interrupts and system calls are implemented. In addition, how is process switching implemented, what is a process, and what data structure is used to describe a process. Then you can learn how the file system is implemented. Finally, we can learn how to create a process and how an executable program runs on the operating system. If you did not try these things yourself, it is hard to imagine that you are always interested in the Linux kernel with tens of millions of lines of code.

Finally, it is the starting point. You can choose to read the relevant sections from top to bottom, or read the code from bottom to bottom. I am using the latter method. I am currently engaged in driver development for a block device. Although the data structures and algorithms at the block device layer are not involved in development. But this is an entry point. You can follow this line to figure out the basic implementation method of the block device driver in the linux Device Driver. You can study how the MTD layer is implemented, continue to face up. You can see how the specific file system layer is implemented, and continue to face up. You can see how VFS is implemented.

In this way, you can basically grasp the core of the Linux operating system-linux is an operating system based on a "File System. Other parts are relatively easy to learn.

Author: winuxpku

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.