Linux Kernel source code directory

Source: Internet
Author: User

The Linux kernel source code directory is as follows:

/arch: The directory includes all the core code related to the architecture. Each of the subdirectories below represents a Linux-supported architecture, such as i386, a subdirectory of the Intel CPU and its compatible architecture. PC machines are generally based on this directory.
/documentation: The directory is a few documents, no kernel code, unfortunately are Chinese, is the role of each directory specific instructions.
/drivers: All device drivers in the system are in the directory. It is further divided into several types of device drivers, each with a corresponding subdirectory, such as the driver for the sound card corresponding to the/drivers/sound;block block device driver, such as the IDE (IDE.C). If you want to see how all the devices that might contain the file system are initialized, you can look at the Device_setup () in/DRIVERS/BLOCK/GENHD.C. It not only initializes the hard disk, but also initializes it because the network is required to install the NFS file system. Other: For example, Lib places the core library code; NET, core and network-related code; IPC, this directory contains the code for the core interprocess communication; Fs, all file system code and various types of file operation code, each of its subdirectories supports a file system, such as fat and ext2.
/fs: Directory holds Linux supported file system code and various types of file manipulation codes. Each subdirectory supports a file system, such as the ext3 file system that corresponds to the ext3 subdirectory
/include: The directory includes most of the header files needed to compile the core, such as the platform-related header files under the/include/linux subdirectory, the Intel CPU-related header files under the/include/asm-i386 subdirectory, and/include/ The SCSI directory is the header file directory for the SCSI device.
/init: The directory contains the core initialization code (not the system's boot code), there are main.c and version.c two files. This is a good starting point for studying how the core works.
/IPC: The directory contains the communication code between the core processes.
/kernel: Kernel Management Core Code, the file in this directory implements the kernel functions of most Linux systems, the most important of which is SCHED.C, and the processor structure-related code is placed in the/arch/*/kernel directory.
/lib: The directory contains the core library code, but the library code associated with the processor structure is placed in the/arch/*/lib/directory.
/MM: The directory contains all the memory management code that is independent of the CPU architecture, such as the allocation and deallocation of page storage management memory. The memory management code associated with the specific hardware architecture is located in the/arch/*/mm directory, such as/ARCH/I386/MM/FAULT.C.
/net: The directory is the core of the network part of the Code, the implementation of a variety of common network protocols, each of its subdirectories corresponds to one aspect of the network.
/scripts: directory contains script files for configuration core, etc.
/block: Block device driver I/O scheduling.
/crypto: Commonly used encryption and hashing algorithms (such as Aes,sha, etc.), there are some compression and CRC check algorithms.
/security: mainly includes SELinux module.
Drive core code and common device drivers for/sound:alsa,oss audio devices.
/usr: Cpio for packaging and compression are implemented.

Linux Kernel source code directory

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.