Linux kernel ———— queueLinux kernel--queueDefined:[CPP]View Plaincopy
struct __kfifo{
unsigned int in; //Queue offset, write index
unsigned int out; //Queue offset, read index
unsigned int mask;
unsigned int esize;
void *data;
}
Use:Create a queue that creates and initializes a kfifo of size:[CPP]View Plaincopy
__kfi
Reprinted from Shui Mu TsinghuaYou are welcome to add1. Please recommend some good Linux kernel reference books?2. Source Code Problems2.1 How to obtain the Linux kernel source code of a certain version?2.2 which file is the source code of the XX command and library?2.3 what are the purposes of
Preface: Today, I'd better use more than 3.10 of the kernel to install Docker. I. Environment 1.1 System Environment [Email protected] kernels]# lsblsblk lsb_release [[email protected] kernels]# lsb_release-alsb Version:: Base -4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch: Printing-4.0-amd64:printing-4.0-noarchdistributor ID:CentOSDescription:CentOS Release 6.5 (Final) release:6.5c Odename:final 1.2 C
1. Get the kernel version
When the device driver needs to support different kernel versions at the same time, in the compilation phase, the kernel module needs to know the version of the currently used kernel source code to use the corresponding
Recommended blog posts:Linux Kernel "problem Gate"-learning issues and experience highlights
Recommended download:Methodology of essence edition of "Cultivation of Linux kernel"
Just now, I was glad to hear that during the trial run of the Sb, the residents of Shanghai visited the site were in a very stable mood and showed their style with great comfort. So here
/Listing 12. Pre-compiled kernel modules# make Menuconfig # make Modules_prepare #Of course, we must first generate kernel configuration files based on the hardware information of the host. config. You can use the command make menuconfig or make config to configure options related to the module (listing 13 corresponds to listing 14, which shows the kernel confi
Preparatory work for the first stage 1 Building the environment 1.1 Download the kernel source code and compile the kernelCreate a directory and enter the directory:Download Source:Unzip, and enter the directory: xz-d linux-3.18.6.tar.xzTAR-XVF linux-3.18.6CD linux-3.18.6Compile related files for the selected x86 sche
Android Linux kernel compilation and androidlinux Kernel
Platform:
Wind7_64 + Ubuntu12_04_64 + VMware
Here we use Android5.0 as an example:
Android5.0 can be downloaded here:
Android-5.0.tar.gz115 online storage package code: 5lbd7crtk1wzHttp://115.com/lb/5lbd7crtk1wz
Linux_source_goldfish can be downloaded here:
Linux_source_goldfish.tar.gz115 online storage
Linux kernel notification chain notifier1.Introduction to the kernel notification chain list (referencing network data)Most of the kernel subsystems are independent of each other, so one subsystem may be interested in events generated by other subsystems. To satisfy this requirement, the
Migrate the Linux kernel from 2.4 to 2.6 On iSeries and pSeries -- Linux general technology-Linux programming and kernel information. The following is a detailed description. Level: elementary
Matt Davis, Linux consultant, IBM
Ch
Tags: include dev unsigned linu for static files is ace SubLinux kernel programming has always been a skill I'd like to master. If you ask me why, I can not say.Maybe one day my id also appears in the message list of the kernel development group? or the kernel release file on the credits file?Maybe it is. In fact more, may be for the bottom of the worship, as wel
gains for the same book, depending on their attitudes and learning methods. The author suggests that when reading a book, you must take the questions in your own mind as the main line, instead of memorizing the knowledge in books without any questions.How to use this book ..The author believes that the learning of any knowledge is self-centered first, and any books and materials are used to answer your questions. Therefore, when you read a book, first, you must clarify what your questions are?
The speed or efficiency of linux® is very good, but in some cases, such speed is not enough to meet the demand. What we need is the ability to meet scheduling deadlines within a specific tolerance range. This article will reveal various options for implementing real-time Linux and how they can be implemented in real time-from the architecture of the early imitation Virtualization solution to the choices ava
The previous chapter describes how to compile the Linux kernel. After an image is obtained, it can be burned to the Development Board for running. However, this will also cause some problems: for example, if you want to add or modify some Linux kernel configurations and components, you must re-compile the
How to remove the old kernel after Linux kernel upgradeFirst we need to look at which kernel is currently in use:
Uname-r This command will tell you the kernel version currently in use
Next, if you are compiling the kernel you
Linux Kernel 'arch/x86/kernel/cpu/mcheck/mce. c' Local Denial of Service Vulnerability (CVE-2018-7995)Linux Kernel 'arch/x86/kernel/cpu/mcheck/mce. c' Local Denial of Service Vulnerability (CVE-2018-7995)
Release date:Updated on:
Differences between Linux 0.12 kernel and modern kernel in memory management
Linux 0.12 kernel memory management is relatively simple and crude. The kernel only uses one page Directory and can only map 4 GB linear space. Therefore
FAT partition is ascii or gb2312, while that of Linux is utf8 by default. do not recognize gb2312 ...... I don't quite understand this place.4. File System -->Native Language Support -->[M] Simplified Chinese charset (CP936, GB2312)If you want to support Chinese characters, you must select this option (... the remaining full text>How to compile
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? "
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.