Transferred from: http://blog.csdn.net/fzubbsc/article/details/37736683?utm_source=tuicoolutm_medium=referralIt's been a long time since I've been in touch with the concept of synchronization, but it's always been a blur, and without deep learning, there's time to spend studying the Linux kernel Standard tutorial and the "Deep Linux device driver
Linux Architecture:Knowledge: Linux architecture is divided into user space and kernel spaceWhat is the reason for dividing into user space and kernel space? Protect the operating system so that the application and the kernel have different permissions. Create different leve
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
advantages of C language preprocessing, but also before the compilation of a trip to the preprocessing, and pre-preprocessing of the file. S is the suffix. This class (. S) files, like C programs, can use #include, #ifdef等等成分, and data structures can be defined in. h files.
The second is embedded in the C Program assembly language fragments. Although the ANSI C language standard does not have the provisions on the Assembly fragment, in fact all of the actual use of C-compilation has been expand
, although the "pure" assembly code, modern assembly tools also absorb the advantages of C language preprocessing, but also before the compilation of a trip to the preprocessing, and pre-preprocessing of the file. S is the suffix. This class (. S) files, like C programs, can use #include, #ifdef等等成分, and data structures can be defined in. h files.
The second is embedded in the C Program assembly language fragments. Although the ANSI C language standard does not have the provisions on the Assembl
of the current process of printing the PID, and then determine whether the clock interrupt the dispatch flag (my_need_sched) is set to 1, if 1 will be the dispatch flag 0, call My_schedule (), avoid the message mechanism, Then print the PID of the current process again.
Myinterrupt.cThe My_time_handler () implementation is called per thousand and the Dispatch flag (my_need_sched) is not 1 o'clock, printing ">>>my_timer_handler hereThe above code is the process scheduling function fault-toler
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
Kernel Kernel, is the core of an operating system. It is responsible for managing the system's processes, memory, device drivers, files, and network systems, which determine the performance and stability of the system. Linux as a free software, with the support of the vast number of enthusiasts, the
The RCU of lock mechanism in Linux kernel, the big kernel lockIn the last blog post, the author analyzes the use of completion and mutual exclusion and some classic questions, the following author will focus on this blog post on the RCU mechanism of the relevant content and introduce the current has been eliminated from the k
Linux Kernel kernel/bpf/verifier. clocal Denial of Service Vulnerability (CVE-2017-17863)Linux Kernel kernel/bpf/verifier. clocal Denial of Service Vulnerability (CVE-2017-17863)
Release date:Updated on:Affected Systems:
Reading Notes on "laruence's Linux house dish": Linux kernel compilation and management1. kernel introduction and obtain kernel source code 1.1 What is kernel: kernel is the bottom laye
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/
Introduction: from 2.4 to 2.6, the Linux kernel has greatly changed in terms of the module mechanism, device model, and some core APIs that can be loaded, device driver developers are faced with porting drivers from 2.4 to 2.6 kernels, or enabling drivers to support both 2.4 and 2.6 kernels... news nbsp
Introduction: from 2.4 to 2.6, the
organizations and therefore does not support overuse. They recommend implementing an isolated virtual file system instead of IOCTL () and/proc, because the file system interface is clear and user-friendly, and the use of virtual file systems makes it easier and more efficient to use scripts to perform system administration tasks.
Experimental section
Introduction to Code Features
We want to collect information about the execution of the
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 synchron
switch unconditionally, but without the other tasks on the CPU Run Queue, no real task switching occurs.
2.3.2.2 Kernel preemptionThe early Linux kernel only supports User preemption. 2.6 Kernel Kernel preemption support was
Tags: compiling environment error Service menus Enter the PNG ble config file letters1 Decompression, patching operation1.1 Open Ubuntu, upload linux-2.6.22.6.tar.bz2 and patch files under Windows folder Linux-2.6.22.6-jz2440.patch to server/work/hardware directory via FTP1.2 Enter Cd/work/hardware into the directory where the package is located, and then use the tar xjf
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:
program. The purpose of this interrupt service program is to load the first sector of the floppy disk program into the specified location of memory.The main boot loader job is to find and load the secondary boot loader (kernel loader)It completes this task by parsing the partition table and locating the active partition when it finds an active partition. It will continue to scan the partitions in the remaining partition table. In order to confirm tha
example above is system_ubject_r:etc_t.All EXT2/3 file systems running SE linux have security.selinux this attribute.Change the file's Extended Properties label: Chcon (cannot be used on the/proc file system, that is, the/proc file system does not support changes to this tag.) )[email protected] test]# ls--context aa.txt-rw-r--r--root root root:object_r:user_home_t aa.txt[Email protected] test]# chcon-t et
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.