linux 内核源文件介绍以及头文件介绍(Linux kernel source file introduction and header file)
1, the kernel source file placed directory:
|
| - boot system boot assembly program directory
|
| - FS file system directory
|
| - include header file directory
|
| - init kernel initialization program directory
|
| - kernel memory process scheduling, signal processing, system call program directory
|
| - lib kernel library directory
|
| - mm memory management program directory
|
| - tools kernel generation tool Image file directory
|
| - Makefile file
|
2 boot boot directory boot
Contains 3 assembly language files, the kernel source file is the first compiled procedures.
Function: when the computer appliances, boot the kernel, load the kernel code into memory, and complete the system initialization.
Boot
|
| - bootsect.s disk boot block, the compiler will reside in the first sector of the disk.
|
| hardware configuration parameters -- setup.s read the machine, and the kernel mode system mobile memory to the appropriate location
|
| - head.s is compiled in the front part of the system connection module, configuration of hardware equipment is the main detection configuration and memory management page
|
3 file system directory FS
Contains 17 C language programs
FS
|
| - buffer.c cache management
|
| - file_table.c in 0.11 only defines a file handle (descriptor) array structure
|
| - ioctl.c will use the kernel/chr_dev/tty.c function, the realization of character device IO control function
|
| - exec.c mainly contains a program execution function (do_execve)
|
| fcntl.c file system call function I/O control
|
| three system calls read_write.c file read / write and positioning
|
| stat.c two access to the file system calls the function state
|
| - open.c mainly contains modify file attributes and create and close the file system call function
|
| char_dev.c mainly contains the character device to read and write function (rw_char)
|
The system call function | pipe.c containing pipeline read and