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
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 functio
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
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 updates are getting faster and faster. Due to the popularity of Linux, everyone is paying attention to it and there are more and more security risks.
Supports Intel, Alpha, PPC, iSCSI, IA-64, ARM, MIPS, Amiga, Atari, IBM s/390, and 32-bit large file systems.
On the Intel Platform, the maximum physical memory support is 64 GB. Enhanced support for I
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
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
The Linux kernel is one of the important tasks of the operating system for process management.This experiment is an overview of the kernel's process of creating a new process.For simplicity, create a process using fork and then user state. The code is as follows:Here is the preparation??? CD LINUXKERNELRM-RF menugit clone https://github.com/mengning/menu.gitcd menumv test_fork.c test.cmake rootfsOpen GDB fo
Then after the Linux kernel 2.6, can not directly export sys_call_table address, we want to get the address of the system call table, so as to achieve the interception of system calls.First put on my implementation of the good code, and then to explain it.Modu.c#include #include#include#include#include#include#includestring.h>#include#include#include#includeModule_license ("Dual BSD/GPL"); #define_debug#ifd
Before trying kernel development, you need to have a general understanding of the kernel. Main Content: Obtain the kernel source code. The kernel source code is structured and compiled. kernel development features 1. obtain the kernel
Original: 10 days the first day of learning the Linux kernel---kernel exploration tool classWinter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not u
Winter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the
Linux Kernel proc file system usage example, Linux kernel proc example
/*
* Kernel programming test code** Copyright (C) 2014 Sun Mingbao * Dual licensed under the MIT and/or GPL licenses.**/# Include # Include # Include # Include # Include # Include MODULE_AUTHOR ("Sun Ming
Winter vacation idle down, can enjoy doing their favorite things, concentrate on the lab in the dry up, because when the sophomore contact Linux, just about the kernel is really not understand, so 10 days still hope to be able to add the Linux kernel related knowledge, Then continue to stay in the lab to summarize the
The Linux 2.4 kernel provides a better description than the kernel-Linux general technology-Linux programming and kernel information. For more information, see the following. 1. Module Subsystem, Unified Device Model, and PnP supp
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.