Reference Click Open link
The number of Linux kernel files is nearly 20,000, which eliminates the related files of other architecture CPUs, and has more than 10,000 s3c2410, s3c2440 two chips. The organization of these files is not complex, they are located in the top-level directory of 17 subdirectories, each directory function independent.
Arch: Contains code related to the hardware architecture, each of which occupies a corresponding directory, such as i386, ARM, ARM64, PowerPC, MIPS, and so on. The Linux kernel currently supports 30 or so architectures. In the arch directory, the storage of each platform and each platform chip for Linux kernel process scheduling, memory management, interrupt, and other support, as well as each specific SOC and board level support code.
Block: Blocks device driver I/O dispatch.
Crypto: Common cryptographic and hashing algorithms (such as AES, SHA, and so on), as well as some compression and CRC validation algorithms.
Documentation: Common explanations and comments for each part of the kernel.
Drivers: device drivers, each with a different driver that occupies a subdirectory, such as char, block, net, MTD, I2C, and so on.
FS: Various file systems that are supported, such as EXT, FAT, NTFS, JFFS2, and so on.
include: header files, and system-related header files are placed under the Include/linux subdirectory.
Init: Kernel initialization code. The famous Start_kernel () is located in the Init/main.c file.
IPC: code for interprocess communication.
Kernel: The core part of the kernel, including process scheduling, timers, and a part of the code related to the peace console is placed in the Arch/*/kernel directory.
Lib: library file code.
mm: Memory management code, and a portion of the platform-related code is placed under the ARCH/*/MM directory.
Net: network-related code to implement a variety of common network protocols.
Scripts: A script file that is used to configure the kernel.
Security: Primarily a selinux module.
Sound:alsa, the drive core code for OSS Audio devices, and common device drivers.
usr: implements Cpio for packaging and compression.
include: Kernel API level header file.