corresponding function pointers in a special section, and then loop through the functions in this section. (very much like in the driver module). defined in the init.h. The values for some special parameters are defined in ARCH/ARM/KERNEL/VMLINUX.LDS.S. (I have to see the Manual of LD later) __SET_UP This macro another flags analogy early, indicating whether the processing phase is done in early-stage. The memory that marks the section of __init that
Linux Kernel development-process scheduling and Linux kernel Process Scheduling
This section briefly introduces the knowledge about process scheduling in kernel development.
What is process scheduling?
Process Scheduling is to select the most appropriate process executio
Preface
In the last few months, I have made a rough research on Linux kernel. Next I need to perform in-depth and detailed analysis. It mainly uses a Development Board of S3C2440 as the hardware entity. It includes the following content:
1 bootloader analysis, mainly uboot, combined with the specific situation of the Development Board. My goal is to explain how uboot works (to be honest, I don't want to be
Add a kernel module in linux and a kernel module in linux
1. Introduction to Kernel Modules
The Linux kernel has a very large integer structure, and many components are contained in the
first, the kernel timer
1. Basic ConceptsIn some scenarios, we need to do some action after a certain time, but do not want to wait and waste the CPU, this time the timer is a very appropriate mechanism. The timer is used to perform a function at a future point in time to accomplish a specific task.
The kernel timer tells the kernel to use specific parameters to
I. i386 Linux operating system startup processBiOS power-on self-check --> load the interrupt vector to a memory unit of 1024 bytes --> execute int h soft interrupt vector call, load and start the boot program stored in the hard disk MBR, the final identifier of the MBR with the system disk is 55aah. The MBR boot program loads and starts the boot program stored in the active partition PBR --> BIOS loads the kernel
Experimental process:Open the shell terminal and execute the following command:CD linuxkernel/Qemu-kernel LINUX-3.18.6/ARCH/X86/BOOT/BZIMAGE-INITRD rootfs.imgAfter execution, the Qemu window will pop up, output the Linux kernel boot information and display menuos after successful startup.Enter help to indicate that the
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
The kernel is a very small part of the entire operating system. According to Google's R D strength, it is not that difficult to develop a kernel? Is it really difficult to develop the kernel, or is Google making Android use the Linux kernel based on some considerations? The
Linux network subsystem Kernel Analysis, linux subsystem Kernel
Select route
To send data packets to PC2, the linux system queries the route table to see that the 168.1.1.10 (Destination Address) gateway address is 192.168.1.1. In this case, the
1. Configure the Environment
Operating system: CentOS 5.2
Download linux-2.6.18 version of kernel, URL: http://www.kernel.org
Description: The compiled document is suitable for 2.6. More than 18 of the Linux kernel version, only the compiled Linux
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
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
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.