Learn about Linux kernel source code from today

Source: Internet
Author: User
Start to learn about Linux kernel source code-general Linux technology-Linux programming and kernel information. For more information, see the following. In the installed Linux system, the source code of the kernel is located in/usr/src/linux.

Linux source code composition:

COPYING: FSF Public License System GPL details

Makefile: refactor the make file of executable code in the Linux kernel.

Documentation: Linux kernel Documentation

Arch: arch is short for architecture. The Code related to the CPU core system structure in the kernel is placed in the subdirectory of the next layer. H files are placed under the include/asm directory respectively.

(1) Alpha --- the 64-bit CPU originally developed by DEC

(2) i386 includes all 32-bit CPUs after 80386 in the X86 series, including 80486, Petium, and other compatible series including AMD K6.

(3) m68k-68000 series developed by Motorola

(4) mips -- CPU chip

(5) s390-a large-scale computer produced by IBM

(6) ia64 -- Intel IA-64 structure 64-bit CPU

The sub-directories of each CPU are further divided into sub-directories such as boot, mm, and kernel, including system boot, memory management, and system call entry and return, interrupt Processing and other underlying code in the kernel that depends on the CPU and system structure. Some of these codes are compiled code, but mainly C code.

Drivers: device drivers, including various Block devices and character device drivers

Fs: file system, each subdirectory corresponds to a specific file system, and some common source programs are used for "Virtual File System" vfs

Include: contains all. h file, such as the arch file subtree, also sets a subdirectory for various CPUs in include, general Sub-directories, such as asmi386 and asm m68k, and general linux and net, are linked to specific sub-directories Based on System configurations.

Init: main () of the Linux kernel and its initialization process, including files such as main. c and version. c.

Ipc: inter-process communication between Linux kernel, including util. c sem. c, shm. c, msg. c, and other files

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.