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
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
Kernel Source Directory1, Arch: recorded x86 focus on2. Init: Start_kernel in MAIN.C under directory is the starting point of the boot kernel3. IPC: Directory of inter-process communicationExperimentOpen the shell with a virtual machine in the lab buildingCD linuxkernel/Qemu-kernel LINUX-3.18.6/ARCH/X86/BOOT/BZIMAGE-INITRD rootfs.imgUse gdb Trace Debug Kernelqemu
Programs running in the Linux kernel should always prevent competing states caused by concurrency. This will cause the data structure to be broken down and cause the kernel to crash in severe cases. Therefore, the kernel synchronization technology is very important to the driver developed by the
, 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
Chen Chaojan Original works reproduced please specify the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000first, the experimental processLanding Lab Building Virtual machine http://www.shiyanlou.com/courses/195Open the shell terminal and execute the following command:
CD Linuxkernel
RM-RF Menu
git clone https://github.com/mengning/menu.git
CD M
I. Linux configuration and compilation
Linux has the following advantages:
1. Clear temporary files, intermediate files, and configuration files
(1) make clean: delete most of the generated files, but keep the configuration file
(2) Make mrproper: delete all generated files and configuration files
(3) make distclean: Delete the patch and backup files of the editor based on make mrproper.
2. Deter
corresponding __attribute__ parameters in parentheses.The syntax format is: __attribute__ ((attribute-list))Attribute sections are used for functions and variables, and typically the compiler places functions in the. Text section, where variables are placed in the. data or. BSS sections, and the section property allows the compiler to place functions or variables in the specified section.2, meaning of Is_err () in driverAll drivers are running in kernel
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
Operating system kernel (linux), operating system kernel linux
Kernel of the Operating System)
Is a group of programs that focus on managing all activities of the computer and all hardware in the drive system.
With the kernel
Linux kernel universal queue implementation KfifoLocation: kernel/kififo.cUse required include header file # include 1. Create queue (dynamically created)int Kfifo_alloc (struct kififo *fifo, unsigned int size, gfp_t gfp_mask);The function creates and initializes a FIFO of size, and the kernel uses the Gfp_mask identit
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
I. measurement time difference
1. There is a constant "HZ" in the Linux kernel, and Hz is a constant unrelated to the architecture. It is used to configure the number of system interruptions per second. The value range is 50-1200 (meaning 50 to 1200 interruptions per second). The default value is 1000 on the X86 platform.
2. The global variable jiffies (unsigned long ). Every time a clock is interrupted, th
Specific questions
Reference Solutions
Solution Ideas
Deep solution
1. Specific questions:After porting the kernel of 3.6.6, download the startup card to die, specifically the serial printing information stuck in "uncompressing Linux ... done, booting the kernel."2. Reference Solution:According to the online statement to ensure that the following
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.