First, the experimental processOpen the shell using the lab building virtual machineCD linuxkernel/ -kernel linux-3.18. 6/arch/x86/boot/bzimage-initrd rootfs.img The kernel boots into the menu program. The following is a boot process that uses GBD to track the kernel:gdb (gdb) file Linux-3.18. 6/vmlinux # Targe rem
One, why to learn the kernel?
Some people have to learn the kernel, while others can not learn it. If you want to engage in system development or drive development in the future, you should learn the kernel.
Just contact the kernel, mainly learn the interface function of the kern
Chapter One introduction to the Linux kernelFirst, the History of Unix1. The Unix system is the root cause of a strong, robust and stable operating system:(1) Simple(2) in Unix, many things are treated as files. This abstraction enables both the data and the operation of the device to be done through a set of identical system invocation excuses: open (), read (), write (), Lseek (), and Close ().(3) Unix kernel
dispatch point will appear, If a process process2 with a higher priority than the currently interrupted process Process1 in the CPU1 's running queue, the interrupted process Process1 will be swapped out of the processor, even if it is running in the kernel state at this time.If the PROCESS3 on the CPU2 also enters the kernel state through the system call and accesses the same critical section, the deadloc
1. Why should we learn the kernel?
Some people want to learn the kernel, while others do not. If you want to engage in system development or driver development in the future, you must learn the kernel.
I just got started with the kernel and mainly learned kernel interface fu
Fan + Original works reproduced please specify the source + "Linux kernel analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000First, the experimental process1. Delete the original menu, and clone the new menu, with TEST_FORK.C overlay test.c2. Make rootfs after the new kernel boot, test fork function3. Use the-s-s frozen core to prepare for comm
He Bong + Original works reproduced please specify the source + "Linux kernel analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000I. Experimental process1, open the shell, enter the start command, the kernel starts to enter the menu program, support three commands help, version and quit.2. Then use GDB to trace the debug
at Tongji University who studies computer networks. The author originally specialized in telecommunications. Although China Telecom is closely connected with computers, the author can only be considered as an amateur computer enthusiast. Therefore, we should say that the book "full note" is a description from the perspective of a computer layman.LinuxOperating system kernel. The book is relatively small. When it includes all the source code of the
Jiangid:fuchen1994Experimental topic: Analyzing the process of creating a new process for the Linux kernel
Reading comprehension task_struct data structure http://codelab.shiyanlou.com/xref/linux-3.18.6/include/linux/sched.h#1235;
Analyze the kernel proce
, the kernel defines a set of standard APIs, the application if a set of API interface can be used to invoke the kernel through this API interface, if not satisfied, the kernel will ignore, for security reasons, Otherwise the application can simply call the kernel, it is not finished, so if you learn application progra
https://www.ibm.com/developerworks/cn/linux/l-kerns-usrs/#ibm-pcon
first, the introduction
In general, the kernel and application have different address spaces on a multitasking system that uses virtual memory technology, so data exchange between the kernel and applications and between applications and applications requires specialized mechanisms for implementa
Linux kernel source code learning: Zombie processes, Linux kernel source code botnets
Orphan and botnets
After a normal sub-process fork parent process, the two establish a parent-child relationship.
When the child process ends, it notifies the parent process, clears the memory occupied by the child process, and leave
Article title: comparison between Linux kernel and traditional Unix kernel. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, em
Linux Kernel implements interrupt and interrupt processing (2). Linux Kernel
The first part is the step-by-step call !! : Http://www.cnblogs.com/lenomirei/p/5562086.html
The last time I said that the Linux kernel interrupt will di
Use kgdb to debug Linux kernel and Kernel Modules
Created:Article attributes: originalArticle submission: xcspy (xcspy.com _ at_gmail.com)
Author: xcspy member ladybugE-mail: xcspy.com@gmail.comHome: www.xcspy.com
1. Comparison of several kernel debugging tools
KDB: Debugging can only be performed at the compilation co
1. Comparison of several kernel debugging tools
KDB: Debugging can only be performed at the compilation code level;The advantage is that two machines are not required for debugging.
GDB: it lacks some essential functions when debugging A module. It can be used to view the running status of the kernel, including disassembly of kernel functions.
Kgdb: it is conven
1. Create a kernel for the embedded platform (the 6410 Development Board is used as an example here)
1. Clear the original configuration and intermediate files
(1) x86: Make distclean
(2) arm: Make distclean
2. Configure the kernel
(1) x86: Make menuconfig
(2) arm: Make menuconfig arch = arm (platform to be specified)
3. Compile the kernel
(1) x86: Make bzimage
(
Linux Kernel linked list (3), Linux Kernel
Introduction to common Linux kernel two-way linked list APIs
The linux link list structure is as follows:
Position of the
The Linux kernel of Android is stored in the kernel subdirectory. By comparing it with the standard Linux 2.6.25 kernel, we can find that it mainly adds the following content:
1. Add the gold-fish platform based on the ARM architecture. The directories added are as follows:
Linux kernel kernel_ nuclear travel_ Travel Linux kernelLinux 2.61Hellomod.c001Hello World driver for Linux 2.6#include #include #inlcude /* Header File */Static Int_init lkp_init (void){PRINTK ("Equivalent to the printf output function in c,return 0;}Static Void_exit lkp_cleanup (void){PRINTK ("}Module_init (Lkp_init)
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.