1. Configure the Environment
Operating system: CentOS 5.2
Download linux-2.6.18 version of kernel, URL: http://www.kernel.org
Description: The compiled document is suitable for 2.6. More than 18 of the Linux kernel version, only the compiled Linux kernel version can not be lower than the Linux operating system itself
When CentOS updates the kernel, many startup items will be added during startup. we can delete the old kernel and keep the latest kernel so that some disk space (/boot) can be released ). (1) view the installed kernel command: rpm-qkernel display result: kernel-2.6.32-279.14
Article Title: Use kgdb to debug Linux kernel and kernel modules. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Comparison of several kernel debugging tools
Kdb: Debugging ca
Introduction to Linux Kernel
Now let's look at the architecture of the Gnu/linux operating system from a relatively high altitude. You can consider the operating system from two levels, as shown in Figure 2.
Figure 2. Basic architecture of Gnu/linux operating system
The top is the user (or application) space. This is where the user application executes. Under User space is the kernel space, where the L
Because I do not have a real machine environment, so I need to simulate in the simulator, so I want to download the source code version of the support simulator, and the goldfish version is specifically provided for the simulator environment.
The Goldfish project contains the kernel sources for the emulated platforms.
One, first, to
git clone https://android.googlesource.com/kernel/goldfish.git downloads
Article Title: How is the Linux kernel module transferred to the kernel ?. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Lsmod reads the/proc/modules file to check which kernel m
Read the platinum file written by the sibling in the 2.4 kernel.
IptablesAdd a module and try it in the 2.6 kernel. After one and a half days of hard work, refer to the platinum article,
Finally succeeded, write it down and share it with the Cu guys, my system is fedora2 + linux-2.6.5-1.358
1. Install the kernel source code.[Root @ jiecho] # Yum install
This series of articles prepared by Zhang tonghao, reproduced please note the Source: http://blog.csdn.net/muge0913/article/details/7480929
Email: muge0913@sina.com
Because the kernel does not distinguish between processes and threads, kernel threads are also called Kernel processes ). Note that threads in common processes cannot be considered as processes.
Dif
Kernel synchronizationSynchronous introductionThe concept of synchronizationCritical section: Also known as the critical segment, is the code snippet that visits and operates shared data.Competition conditions: 2 or more than 2 threads are running at the same time in a critical section, which constitutes a competitive condition.So-called synchronization. In fact, to prevent the formation of competitive conditions in the critical area.Assuming that the
First, How does the Linux kernel organize the files in each directory tree and compile them? and build a kernel with specific features as needed? in theLinuxin the kernel, there are two types of files:Makefile,Kconfig. The two files are distributed in the various levels of the kernel directory (each level corresp
CentOS deletes the old (kernel) kernelWhen CentOS updates the kernel, many startup items will be added during startup. we can delete the old kernel and keep the latest kernel so that some disk space (/boot) can be released ).(1) view installed kernelsCommand: rpm-q kernelShow results:
Differences between Linux 0.12 kernel and modern kernel in memory management
Linux 0.12 kernel memory management is relatively simple and crude. The kernel only uses one page Directory and can only map 4 GB linear space. Therefore, the virtual space (Logical space) of each process can only be 64 MB, A maximum of 64 pro
Linux network subsystem Kernel Analysis, linux subsystem Kernel
Select route
To send data packets to PC2, the linux system queries the route table to see that the 168.1.1.10 (Destination Address) gateway address is 192.168.1.1. In this case, the linux system selects Nic 1 to send data packets.
2. Neighbor subsystem (establish neighbor information through arp)
When network adapter 1 is selected to send data,
Replace the kernel in ubuntu, and replace the kernel in ubuntu.
First download the Linux kernel source code, and store it in the/usr/src directory, here for testing, is in ubuntu14.04, download the kernel is linux-3.14.10
2. Then enter the downloaded kernel linux-3.14.10 r
Linux kernel source code learning: Zombie processes, Linux kernel source code botnets
Orphan and botnets
After a normal sub-process fork parent process, the two establish a parent-child relationship.
When the child process ends, it notifies the parent process, clears the memory occupied by the child process, and leaves its exit information (exit code) in the kernel
Jiangid:fuchen1994Experimental topic: Analyzing the process of creating a new process for the Linux kernel
Reading comprehension task_struct data structure http://codelab.shiyanlou.com/xref/linux-3.18.6/include/linux/sched.h#1235;
Analyze the kernel processing process of the fork function Sys_clone, understand how to create a new process and how to create and modify task_struct data stru
Kernel synchronizationSynchronous introductionThe concept of synchronizationCritical section: Also known as a critical segment, is the code snippet that accesses and operates shared data.Competition conditions: 2 or more than 2 threads are executed simultaneously in the critical section, which constitutes a competitive condition.The so-called synchronization, in fact, prevent the formation of competitive conditions in the critical area.If the critical
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.