Linux kernel source code structure

Source: Internet
Author: User

Source codeAll in the directory:/usr/src/Linux (mostlyLinuxReleasing Version)

 

Arch:Includes hardware architecture-relatedCodeEach platform occupies a directory. The 32-bit PC-related code is stored in the i386 directory, including the kernel core, mm (memory management), and math-EMU (floating point unit simulation), lib (hardware-related tool functions), boot (bootProgram), PCI (PCI Bus), and power (CPU-related status ).

Block:Some block device drivers.

Crypto:Common encryption and hashAlgorithm(Such as AES and Sha), as well as some compression and CRC verification algorithms.

Documentation:General explanations and comments about each part of the kernel.

Drivers:Device Drivers, each of which occupies a sub-directory.

FS:Various supported file systems, such as Ext, fat, and NTFS.

Include:Header file. The System-related header files are placed in the Linux subdirectory.

Init:Kernel initialization Code (not the System Boot Code ).

IPC:Code for inter-process communication.

Kernel:The core of the kernel, including process scheduling and timer, is stored in the arch/*/kernel directory.

Lib:Library File code.

MM:Memory Management Code. Some codes related to the platform are stored in the arch/*/mm directory.

Net:Network-related code implements various common network protocols.

Scripts:The script file used to configure the Kernel File.

Security:It is mainly a SELinux module.

Sound:Drivers for commonly used audio devices.

USR:Implements a cpio.

In the i386 system, the system will start executing from arch/i386/kernel/head. s, and then transfer it to the main () function in init/Main. C to initialize the kernel.

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.