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 kernel. People who do n
Linux kernel:Kernel design Genre:Single core design, but fully learn the advantages of micro-kernel system design, for the kernel introduced a modular mechanism, the core height of modularity;After the kernel is modularized, some of the most basic and important content is compiled into kernel core, while other function
RefHttp://www.zhizhihu.com/html/y2010/2292.htmlKernel FunctionsBelow is a list of some kernel functions available from the existing literature. As is the case with previous articles, every LaTeX notation for the formulas below is readily available from their A Lternate text HTML tag. I can not guarantee all of them is perfectly correct, thus use them at your own risk. The most of them has links to articles where they has been originally used or propos
Linux Kernel compilation details, Linux kernel details
After learning some online materials, I tried to find out and sort out this article.
We hope you will criticize and correct the mistakes due to their limited level and improper position.
Important references include:
Http://raspberrypi.stackexchange.com/questions/192/how-do-i-cross-compile-the-kernel-on-a-ub
Data exchange between linux kernel and user layer and linux Kernel
1. There are basically System Call interfaces file_operation interfaces: read write ioctl?
Module param of module driver (module parameters of module driver ).
2. kernel startup parameters :?By identifying the parameters passed by bootloader?_ Setup ("para_name =", parse_func)
3. asynchronous no
Before attempting the kernel development, you need to have an overall understanding of the kernel.Main content:
Get the kernel source code
Structure of Kernel source code
Methods for compiling the kernel
Features of kernel development
1. Get the
Introduction to the Linux kernel module the overall structure of the Linux kernel is already very large, and it contains many components. How can we include all the required parts in the kernel?One way is to compile all required functions into the Linux kernel. This will cause two problems. One is that the generated
Chapter One: Introduction to the Kernel
The scope of the processor's activity at any given point in time:
A, run in the kernel space, in the process context, on behalf of a specific process execution;
b, running in kernel space, in the interrupt context, regardless of any process, handling a particular interrupt;
C, run in user space, execute user process.
When a
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 conditions:
2.1 Core clock frequenc
• Source code to compile the Linux kernel• Using the Linux kernel module• Actual combat-compile an NTFS kernel module to implement Linux mount NTFS file system and read and write functionsUpgrade the kernel two ways:1:rpmYumRPM-IVH cannot overwrite old kernel directly with U
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 kernel of the large
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 kernel mechanism" section of these two books. When you have j
Most Linux instances are single-coreThe operating system kernel may be a micro kernel or a single kernel (which is sometimes called a macro kernel macrokernel ). These terms are defined as follows in a similar encapsulation:L microkernel (microkernel)-In the microkernel, most kernels run as separate processes in a priv
1. Comparison of several kernel debugging tools
KDB: Debugging can only be performed at the compilation code level;The advantage is that two machines are not required for debugging.
GDB: it lacks some essential functions when debugging A module. It can be used to view the running status of the kernel, including disassembly of kernel functions.
Kgdb: it is conven
Use kgdb to debug Linux kernel and Kernel Modules
Created:Article attributes: originalArticle submission: xcspy (xcspy.com _ at_gmail.com)
Author: xcspy member ladybugE-mail: xcspy.com@gmail.comHome: www.xcspy.com
1. Comparison of several kernel debugging tools
KDB: Debugging can only be performed at the compilation code level;The advantage is that two machines a
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 implementation, and it is well known that Inter-process
The mutex Kernel Object ensures that a thread exclusively accesses resources.
The behavior characteristics of mutex kernel objects are similar to those of key code segments, but they are kernel objects, and key code segments are user mode objects, as a result, the mutually exclusive kernel objects run at a lower speed
Tags: socket source x86 INF location Architecture level pre compositionThe world is sad to end, the Octopus elder brother also retired, even the non-sincerity does not disturb in the worship diggers also suddenly a lot less. This "Linux kernel cultivation of the road" in excellence, when, China-pub has also been on sale, although serious literature, but in order to ensure fluency, most of the text I also are the words of the burning sentence, repeated
Features of Linux kernel development
Compared with applications in a user spaceProgramThere are many differences in development and kernel development. The most important differences include:
1) The C library cannot be accessed during kernel programming.
2) gnu c must be used for Kernel programming.
3) There is
Kernel-level thread and user-level thread, kernel-level thread user
When I wrote this blog these two days, I reviewed the operating system materials and encountered a problem that I did not understand before, that is, about kernel-level threads and user-level threads. After reading some documents, I will share my personal profile.
Threads have been implemented in
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.