Last introduced the Linus Torvalds, this time introduced him to develop the "kernel".Often hear people mention "linux kernel", but if asked what is the "kernel? , it would be surprisingly difficult to answer.So, what exactly is kernel? "kernel" translation came to mean the "
Chen Chaojan Original works reproduced please specify the source"Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000Experimental stepsLanding Lab Building Virtual machine http://www.shiyanlou.com/courses/195Open 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 p
One: Linux kernel:
The operating system is a low-level support software used to deal with hardware and provide a limited set of services for user programs. A computer system is a symbiotic body of hardware and software that is interdependent and indivisible. Computer hardware that contains peripherals, processors, memory, hard disks, and other electronic devices that make up the computer's engine. But without software to manipulate and control it, it
Press the power supply, click it, start the computer, and then the BIOS screen will pop up. after a while, the GRUB interface will pop up, and a line after line of characters will pop up on the black screen, from time to time there are OK words
Press the power supply, click it, start the computer, and then the BIOS screen will pop up. after a while, the GRUB interface will pop up, and a line after line of characters will pop up on the black screen, from time to time there are OK words. oh, don't
Linux Kernel module notes, Linux kernel module
Topic: 1. basic embedded knowledge 2. linux Kernel Introduction 3. kernel compilation and installation (x86) 4. first Module 5. module related tools 6. module symbol export 7. module parameter job: 1. check linux/module. h. The location of the header file that is exposed t
This HTML page address: http://oss.org.cn/kernel-book/In- depth analysisLinuxKernel sourceObjectiveChapter I. into Linux1.1 GNU and Linux growth1.2 Linux development model and operation mechanism1.3 into Linux Kernel 1.3.1 Features of the Linux kernel1.3.2 changes to the Linux kernel version1.4 Analyzing Linux the meaning of the
What does the Linux system consist of?Consists of user space (application +gnu C standard library) and kernel space (System call interface + kernel + Kernel architecture code).What exactly is the Linux kernel? and composition.Seven types of operating levels for arm?What is the role of the
Transferred from: http://www.cnblogs.com/lcw/p/3159394.htmlPrefaceWhen a user compiles a Linux kernel code, several files are generated: Vmlinz, initrd.img, and System.map, and if the Grub Boot manager program is configured, the files are seen in the/boot directory.
VmlinuzThe Vmlinuz is a bootable, compressed kernel file.The file contains a minimal functional ker
Transferred from: melody_lu123 csdn blog, a great technical article.
Author: Gustavo Duarte
From: http://duartes.org/gustavo/blog/post/how-the-kernel-manages-your-memoryHow the kernel manages your memory
How does the kernel manage your memory?
After examining the virtual address layout of a process, we turn to the kernel
One pageThe kernel takes the physical page as the basic unit of memory management; the Memory Management Unit (MMU) transforms the virtual address into a physicalAddresses, which are typically processed in pages. The MMU manages the tables in the system in the page size unit.32-bit system: Page size 4KB64-bit system: Page size 8KBThe kernel represents each physical page in the system with the corresponding
Introduction to Linux Kernel
Now let's look at the architecture of the Gnu/linux operating system from a relatively high altitude. You can consider the operating system from two levels, as shown in Figure 2.
Figure 2. Basic architecture of Gnu/linux operating system
The top is the user (or application) space. This is where the user application executes. Under User space is the kernel space, where the L
Because I do not have a real machine environment, so I need to simulate in the simulator, so I want to download the source code version of the support simulator, and the goldfish version is specifically provided for the simulator environment.
The Goldfish project contains the kernel sources for the emulated platforms.
One, first, to
git clone https://android.googlesource.com/kernel/goldfish.git downloads
The module subsystem (ModuleSubsystem), the unified device model (uniieddevicemodel), and the PnP support module subsystem have undergone major changes. 2. stability is improved
1. module subsystemModule Subsystem, Unified Device Model, and PnP support Module Subsystem have undergone major changes.
2. improved stability
To completely prevent the kernel from loading or exporting the kernel module in use, or
I have never thought of any good way to pass parameters to the kernel through registers until now the implementation of uboot reading.
In uboot, the most common method to boot the kernel is the bootm command. The bootm command can boot the "uboot format" kernel. Let's take a moment to know what the kernel is in uboot
Transferred from: http://www.linuxidc.com/Linux/2013-12/93637.htmWhen migrating Linux to a new architecture, a number of issues that developers encounter are related to incorrect data types. Sticking with strict data types and compiling with-wall-wstrict-prototypes can avoid most bugs.
-wall
Show all warnings
-wstrict-prototypes
Rigorous detection of prototypes, if not consistent, warnings appear
The data types used by the
Kernel synchronizationSynchronous introductionThe concept of synchronizationCritical section: Also known as a critical segment, is the code snippet that accesses and operates shared data.Competition conditions: 2 or more than 2 threads are executed simultaneously in the critical section, which constitutes a competitive condition.The so-called synchronization, in fact, prevent the formation of competitive conditions in the critical area.If the critical
This article provides a brief introduction to kernel-related basic concepts.Main content:
Single Core and micro core
Kernel version number
1. Single Core and micro-core
principle
Advantage
disadvantage
single core
1. Simple. 2. Efficient: All cores are in a large address space, so calls and call functions are s
executing at any time
Soft interrupts and Tasklet: The kernel can wake up or dispatch soft interrupts and tasklet at any time, interrupting code that is currently executing
Kernel preemption: The Linux kernel is preemptive, so the kernel's task may be preempted by another task
Sleep and user space synchronization: Processes that execute in the
Basic synchronization mechanism of the kernel:Key features of the preemption kernel: a process running in the kernel state that may be replaced by another process during kernel functions execution.Kernel preemption: Linux 2.6 Allows users to configure the kernel to be very enabled when compilingProcess critical section
/proc/kallsyms records the names and addresses of all the exported symbols in the kernel
We need to compile 2 kernel modules, and then one of the kernel modules to call functions in another kernel module
The HELLO.C code is as follows
#include
From this we can see that we have called 2 functions Add_integar and Sub
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.