the process of kernel compilation
1. Download Kernel source code tree extract to/usr/src# Tar XF linux-3.13.5.tar.xz-c/usr/src# Ln-sv/usr/src/linux-3.13.5/usr/src/linux2. The kernel configuration profile is stored in the kernel s
support kernel preemption, once a process/thread runs in the kernel space, it is not allowed to be preemptible, the CPU will be released only after the kernel thread execution is completed, the CPU is automatically abandoned, or the time slice is exhausted.
· In systems that s
made in the stable tree after being tested in the development tree. Once the development tree has been developed enough, the development tree becomes the new stable tree. The number of development is reflected in the source program version number, the source version number is in the form of x.y.z: For the stable tree, y is even; for the development tree, Y is higher than the corresponding stable tree (therefore, it is odd). So far, the highest version of the stable tree is 2.2.16, and the lates
) continueContinuing.[New thread 1][Switching to thread 1]
Breakpoint 1, do_basic_setup () at current. h: 99 _ ASM _ ("andl % ESP, % 0;": "= r" (current): "0 "(~ 8191ul ));
View the current stack after the kernel stops running at the do_basic_setup breakpoint(GDB) BT#0 do_basic_setup () at current. h: 9(GDB)
3.3.3 kernel module debugging
To debug the kernel modul
try to read a kconfig file.
OK, now that we have an understanding of these keywords, let's take a look at the formation of this menu list. After running make menuconfig, the system's configuration tool first analyzes the/arch/arch/kconfig corresponding to the architectureThe file (the Arch argument that appears here is at the end of this article). It actually refers to the
second, another important role------introduction of Kbuild Makefile
The Kconfig file helps the user complete the confi
current stack after the kernel stops running at the do_basic_setup breakpoint(GDB) BT#0 do_basic_setup () at current. h: 9(GDB)
3.3.3 kernel module debugging
To debug the kernel module, corresponding GDB support is required. The kgdb home page provides a tool gdbmod, which fixes the error of GDB 6.0 in parsing the mod
)Add I (7->8)----Increase I (7->8)Write back I (8)----Write back I (8)As described above, concurrent access to shared resources, the I value may appear as 8, resulting in unexpected functionality.Several methods and interfaces are available in the Linux kernel to address the above problems.1. Atomic AccessThat is, atomic execution obtains I, adds I, and writes back I 3 instructions. Examples of related inte
The simple multi-task kernel in Chapter 4 of "complete Linux Kernel Analysis-Based on 0.12 kernel" by Zhao Yi, that is, the simplest kernel example that continuously outputs AAAAABBBBB, the source code is clearly explained, but how to compile an organizational file depends o
The Linux 2.4 kernel provides a better description than the kernel-Linux general technology-Linux programming and kernel information. For more information, see the following. 1. Module Subsystem, Unified Device Model, and PnP
Data exchange between linux kernel and user layer and linux Kernel
1. There are basically System Call interfaces file_operation interfaces: read write ioctl?
Module param of module driver (module parameters of module driver ).
2. kernel startup parameters :?By identifying
1. Check the Linux kernel version and whether the Aufs module is supported:[16:45:31 [email protected] ~]# uname-r3.10.0-229.el7.x86_64[16:46:45 [email protected] ~]# grep aufs/etc/filesystems2. Download the 3.10 kernel with the Aufs modulefrom this site http://down.51cto.com/data/1903250 Download the following two files and upload them to a virtual machineKernel
Chapter One: Introduction to the Kernel
The scope of the processor's activity at any given point in time:
A, run in the kernel space, in the process context, on behalf of a specific process execution;
b, running in kernel space, in the interrupt context, regardless of any process, handling a particular interrupt;
C, run in user space, execute user process.
When a
and is a special case of the radial basis kernel function, the formula is:It is mainly used for the linear variational case, which corresponds to the linear-supported vector machine and the linear support vector machine of the previous speech. It finds the optimal linear classifier in the primitive space, and has the advantage of fast parameter and low speed.2. Polynomial
Article title: Linux 2.4 kernel-kernel improvement description. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded syste
Programs running in the Linux kernel should always prevent competing states caused by concurrency. This will cause the data structure to be broken down and cause the kernel to crash in severe cases. Therefore, the kernel synchronization technology is very important to the driver developed by the
can also access the kernel ). For example:
Asmlingkage long sys_getpid (void)
{
Return current-> pid;
}
System calls generally start with sys, And the modifier is asmlingkage, indicating that the function gets parameters from the stack.2) protocol-independent Interfaces
The protocol-independent interface is implemented by socket. It provides a set of common functions to support different protocols.
Socket
Compiling the Linux kernel is the basic function of kernel development, and if we add kernel functionality by directly modifying the Linux kernel code, the modified kernel code must be
1. Check the Linux kernel version and whether the Aufs module is supported:[16:45:31 [email protected] ~]# uname-r3.10.0-229.el7.x86_64[16:46:45 [email protected] ~]# grep aufs/etc/filesystems2. Download the 3.10 kernel with the Aufs modulefrom this site http://down.51cto.com/data/1903250 Download the following two files and upload them to a virtual machineKernel
Linux Kernel overview, Linux kernel Overview
Linux Kernel learning notes.
Unix
Unix has a history of 40, but computer scientists still regard it as the largest and most outstanding System in the existing operating system. It has b
One, the Linux kernel compared to the traditional Unix kernel comparison:(1): Linux supports dynamic kernel modules. Although the Linux kernel is also a monolithic structure, it allows
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.