The Linux kernel has basically been analyzed, and the kernel of the later version has also read a bit. I have some tips to share with you.Click it! Here I am not going to talk about specific technical aspects, but about how to read the kernel..Some
The kernel synchronizes data instead of logic ).
Interrupt handlingProgramSecurity that can avoid concurrent accessCodeThe security code is called the security code of interruption, and the security code that can avoid concurrent access on
Reprinted: http://baike.baidu.com/view/1919192.htm
In Linux, shell commands are used to make MD5 codes for MD5 verification of software.
AlgorithmIt is often used to verify the integrity of network file transmission and prevent file tampering.
Linux File lock
Linux File locks are divided into two types:
One is advasory lock, which can only ensure the mutual exclusion of the same file lock in the process. However, multiple processes can simultaneously Add a mutually exclusive lock to a
[Regularly start your Linux program]**************************************** *****************Minimum model example:Your program:VI hello. Sh1 #! /Bin/sh23 Echo "Hello World"4Your task:Crontab-e00 15 18 10 * mail HFX
OK!Your Sh script will be
From: http://soft.chinabyte.com/ OS /279/12066779.shtml
I. View CPU using common centos commands
More/proc/cpuinfo | grep "model name"
Grep "model name"/proc/cpuinfo
[Root @ localhost/] # grep "CPU"/proc/cpuinfo
Model name: Intel (r) Pentium
Application of Regular Expressions
Regular Expressions are a tool used to process strings. As important as Bash, regular expressions are the only way to learn about Linux.For example, the grep commandFuck you ~ /Add alias grep = 'grep -- color =
Software on Linux always seems to be unable to keep pace with the times. Taking my system as an example, Firefox on my fedora 8 has become antique. However, this antique is not an antique, and it cannot be appreciated! In order to keep my little
The second layer of the device model is also a very important layer, laying the foundation for various devices. As I found during the analysis, if every detail is merged, it may be difficult to understand the overview of the device model. Therefore,
The linked list in the kernel is widely used. Here we summarize some of Linux/list. H, which is also the most commonly used macro definition.
Pro-III, kernel linked list:
1. Definition + initialization:
# Define list_head_init (name) {& (name), & (
After you enter the vmlinux kernel image, you can access ARCH/x86/compressed/head_32.s. The main task of this file is to decompress the file and release the real kernel. However, the file must be analyzed before the kernel can be generated.
From
/* Driver test code */
# Include # Include # Include # Include # Include # Include # Include # Include
Module_license ("GPL ");
Static int char_read (struct file * filp, char _ User * buffer, size_t, loff_t *);Static int char_open (struct inode *,
Kernel timer usage
Linux Kernel timer is a mechanism used by the kernel to control the scheduling of a function at a certain time point (based on jiffies) in the future. Its implementation lies in and kernel/Timer. c file.
The scheduled function
Recently, new embedded learning has started. As we need to participate in a competition, today a senior gave us an introduction to the Embedded Development Board. Next I will briefly introduce how to use Linux and the Development Board for
GDB is a common C/C ++ debugging tool in Linux and has powerful functions. How can I use GDB for debugging complex systems, such as multi-process systems? Consider the following three-Process System:
Proc2 is a subprocess of proc1, and proc3 is a
Address: http://hi.baidu.com/neu_stroller/blog/item/4213d8c52ddf0aa18226accb.html
Routine 8Purpose: To print the thread ID and process ID in the newly created threadProgram name: pthread_id.c
# Include # Include # Include /* getpid ()*/
Void *
Address: http://www.iteye.com/topic/309442
This function affects an open file referenced by the FD parameter.
# Include
Int IOCTL (int fd, int request,.../* void * Arg */);
Return 0: Success-1: Error
The third parameter is always a pointer, but
Address: http://blog.csdn.net/kevined/article/details/2625095
Yesterday, a member of the team suddenly asked about the Linux latency function, which was specially organized for reference by new users:
Latency functions in Linux are divided into
The select function is easy to use, and its working principle is also known to everyone. However, it may not be strictly observed in actual use, and it is indeed difficult to fully comply with it unless it is not used.
Select uses a bit table.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service