Linux kernel source code each directory function description

Source: Internet
Author: User

Kernel source can go to https://www.kernel.org/to download.

After the download is complete, you will get *.TAR.XZ source package, first use xz-d *.tar.xz decompression, and then use TAR-XVF *.tar to unpack the kernel source code:

[Email protected]:~/workspace$ lslinux-4.1.42 Linux-4.1.42.tar

Enter this directory, there will be many directories:

[email protected]:~/workspace/linux-4.1.42$ lsarch     documentation   init     lib          readme           soundblock    drivers         ipc      MAINTAINERS   Reporting-bugs  toolscopying  firmware       kbuild    Makefile     samples          usrCREDITS  fs              Kconfig  mm           scripts          virtcrypto   include         kernel &nbSp; net          security 

The functions of each catalogue are described below (private dishes from Bird's):

Arch: non-hardware platform related projects, most LED is the CPU category, such as x86, x86_64, Xen virtual support, etc.;

Block: No group training and preparation of the relevant training data, block data is usually LED is a large number of storage media! Also package including similar to ext3 and other file system support is acceptable.

Crypto: The encryption technology supported by the core, such as MD5 is des and so on;

Documentation: Not the core of a bunch of documentation, if the core has a great interest, look at this!

Drivers: Some hardware of the drive program, such as display adapter, network card, PCI-related hardware and so on;

Firmware: micro-scripting (firmware) data for some legacy hardware;

FS: Filesystems supported by the core, such as VFAT, ReiserFS, NFS, etc.;

Include: Some can ridiculed other procedure call header (header) to set 丿 data;

Init: Some core programmes to start the 丿 function, package including mount not init program call Jutting, etc.;

IPC: Fixed 丿 Linux operating system in the process of communication;

Kernel: 丿 core program, core State, Thread, program scheduling (schedule), program number (SIGNLE), etc.

Lib: Some of the Taipa-style libraries;

MM: Non-memory unit related data, packet including swap not virtual memory, etc.;

NET: No network-related acial data, there are firewall modules (net/ipv4/netfilter/*) and so on;

Security: Package including SELinux and other safety training;

Sound: The various modules of the audio;

Virt: Non-virtualized machine-related information, currently the core support is KVM (Kernel base virtual machines)




This article is from the "fragrant fluttering leaves" blog, please make sure to keep this source http://xpleaf.blog.51cto.com/9315560/1950035

Linux kernel source code each directory function description

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.