Linux Kernel 1. linux architecture
Linux can be divided into user space and kernel space. Kernel space and user space are two different states of program execution. The transition from user space to kernel space can be completed through system calls and hardware interruptions. Www.2cto.com 2. Linux kernel architecture
The 2.1 system call interface (SCI) SCI layer provides a set of standard system call functions for user space to access the Linux kernel and build a bridge between user space and the kernel. 2.2 process management (PM) the focus of process management is to create a process (fork, exec), stop the process (kill, exit), and control the communication between them (singal or POSIX mechanism ), process Management also includes controlling how active processes share the CPU (process scheduling )..
2.3 Memory Management (MM) the main function of memory management is to control the secure shared memory areas of multiple processes. 2.4 The network protocol stack (NS) provides a wide range of network protocol implementations for Linux. 2.5 Virtual File System (VFS) www.2cto.com VFS hides details of various file systems and provides unified interfaces for file operations.
2.6 The Device Driver (DD) Linux kernel contains a large amount of code in the device driver, and they control specific hardware devices. 2.7 ArchArch contains each CPU system supported by the kernel. In the Arch directory, each sub-directory corresponding to each CPU system contains sub-directories such as boot, mm, and kenerl, control system guidance, memory management, and system calls. For example, X86 systems such as hubi0952