Learn about Linux kernel-general Linux technology-Linux technology and application information. For more information, see the following section. I remember a few years ago when I first came into contact with Linux. I just heard about the concept of the operating system kernel and remembered to learn about the Linux kernel and read the Linux kernel source code. But now, I can go to the kernel door, it's a shame that the speed is slow. This article has long been intended to be written, but it has been a drag-and-drop attempt. I have also thought about a series of articles that can be written as long as they are written ~, I don't care about anything now, but I think I can go to heaven in one step? Let's take a look at my blog as my study notes.
When I was in my sophomore year, I wanted to learn the kernel source code without basic professional knowledge. I did not read the source code blindly, but I spent a long time exploring at the application layer, wasting a lot of valuable time, there is also a one-year postgraduate entrance exam ~. The Linux kernel is developing very fast now. It has reached version 2.6.23, and dozens of megabytes of code can't be fully read after reading it, in fact, a friend who wants to learn the Kernel should first read a book like I couldn't find a direction at the time, "Linux Kernel Development" Robert Love, and "Linux Kernel scene source code analysis", Mr Mao dejiao, wait for these good books, published in China, only the source code analysis of the scenario, this book can quickly find the direction, not as I did when the blind lights, too many detours, it is best to take the purpose to learn.
The Linux kernel consists of five main parts: process scheduling, memory management, file system, device driver, and network subsystem.
We usually install the Linux operating system, but sometimes we cannot find the source code. Many books say that we can find the kernel source code under/usr/src, however, if you have not selected the installation source code or there is no obvious installation source code as Fedora6 does, you cannot find the kernel source code under/usr/src, in previous kernel versions, we often say that the kernel source code is stored in the/usr/src/linux directory. Do you go to/usr/src/to use ls? L run the command to check whether the linux directory is a connection, which is equivalent to a shortcut in Windows. You can use the command ln? S linux2.6.23 is generated in linux (Here we assume you are the 2.6.23 kernel). If you do not find the kernel source code under/usr/src/, don't be discouraged. You can go to the kernel ). I suppose we have downloaded a kernel and decompress it under/usr/src/to obtain the kernel source code. We can use it to compile a new kernel for us to use, it can also be used for other purposes. Compiling the kernel is not the topic here. I will not talk about it here, if you are interested, you can refer to an article on Kernel compilation or Internet search.
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