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 n
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
Liu Chang Original works reproduced please indicate the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000write in frontThis experiment focuses on the process of loading and starting an executable program in the Linux kernel, including the analysis of executables, the loading an
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
10 days to learn the Nineth day of the Linux kernel---Add code to the kernelSleep a good sleep, very late, for a long time not so comfortable, today's task is not heavy, so the pressure is not big, oh, the weather is really cold, but the laboratory has air conditioning, I still like to stay here, there is a different feeling, after writing so many days, I do not understand the page gradually enlightened, An
Communication code
Kernel
A core subsystem such as a scheduler
Lib
Same kernel function
Mm
Memory management subsystem and VMS
Net
Network subsystem
Samples
Example, demo code
Scripts
Scripts used to compile the kernel
Security
1. The Code in the underlying Linux kernel is mostly completed in assembly language. assembly code exists in two forms. One is a pure assembly code file suffixed with. S. Of course, the precompilation option is also added to such assembly code, rather than just assembly. The other is to embed the assembly language in the C language. Although there are no provisions on Assembly fragments in ansi c languag
As mentioned in the previous article, the latest Android source code downloaded from the source code tree does not contain kernel code, that is, the android source code project does not contain Linux kernel code by default, instead, use the pre-compiled kernel, that is, the prebuilt/Android-arm/
20135311 Fu DongAnalyzing the process of creating a new process in the Linux kernel learning contentProcess Control block--PCB TASK_STRUCT data structureThe PCB task_struct contains:进程状态、进程打开的文件、进程优先级信息操作系统管理的三个功能:1.进程管理 2.内存管理 3.文件系统Status of the Linux process:Process State Analysis:The long state is the running status of the process, 1 is not executed, 0 is in
Linux Kernel 'kernel/bpf/verifier. c' local information leakage (CVE-2017-17864)Linux Kernel 'kernel/bpf/verifier. c' local information leakage (CVE-2017-17864)
Release date:Updated on:Affected Systems:
Description of the processThe three main management functions of the operating system: process management, memory management, file systemTo manage the process, the kernel must have a clear description of each process, and the process descriptor provides the process information that the kernel needs to understand.Process Control block PCB task_struct: Process status, Process-open files, process priority info
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
X86 platform: The Linux system compiles the configuration kernel and starts the kernel
This article turns from: http://blog.chinaunix.net/uid-25811099-id-1704590.html
PC System: Windows XP Virtual machine: VMware 6.5.1 build-126130 Virtual machine system: Linux system (provided on version:2.6.25-14.fc9.i686 friendly
For C in Linux, the GCC compiler is used for compiling, and the source code of the kernel is also dependent on the corresponding GCC version.
Because a large number of double-stranded tables are required in the kernel, the data structure of the double-stranded table is abstracted to become the list_head struct. For this problem, the
Experimental processClone the corresponding mengning/menu.git on 1.github2. Test Menuos, test fork Direct execution results3. Configure debug system, go to gdb Debug, use file Linux-3.18.6/vmlinux and target remote:1234 to configure loading initial debugging environment4. Set breakpoints in the Linux kernel process to create the points that may be used, respectiv
Advantages and disadvantages of Linux Device Driver dynamic kernel insertion and direct integration into the Kernel Analysis Introduction: The company made a Linux-based Ethernet interface board, which is currently maintained by me, the main CPU of this Board uses PowerPC, run the
Transferred from: http://blog.chinaunix.net/uid-12461657-id-3487463.htmlOriginal address: A supplemental description of the interrupt stack and kernel stack in the Linux kernel MagicBoy2010interrupt stack and kernel stack topic is more of the core category, so in the "deep Linux
. Signal Processing(1) unsigned long signal;The signal received by the process. Each represents a signal of 32 types. The specified location is valid.(2) unsigned long blocked;The bitmask that the process can accept. The position indicates blocking, And the reset indicates not blocking.(3) struct signal_struct * SIG;Because both signal and blocked are 32-bit variables, Linux can only accept up to 32 signals. For each signal, each process can select a
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.