I always think that two-way linked list is very important in the kernel.
The container_of macro is used for the two-way linked list.
Container_of is based on typeof.
Without typeof, there will be no container_of, two-way linked list, there will
Two independent small systems have been developed in succession recently. Although tired, I still have some experience.
Developing two low-density systems is very easy to compare with the first system when the second system is released. Draw out
The calculation method must be simplified because the exponential result of an integer is large and may be far beyond the scope of computer processing.
Modulo properties: (A * B) mod m = (a mod m) * (B mod m) mod m,
The principle of quick
# Include
Using namespace STD;
// The original position of the array remains unchanged. What is the maximum number, for example, B [3-1];
Int A [] = {3, 6, 9, 4, 5}; // original array
Int B [] = {1, 2, 4, 5}; // auxiliary Array
Int CMP (const
# Include using namespace STD; // There is an unordered positive integer array with 2n elements. It is required to divide it into two arrays whose number of elements is N, and make the sum of the two subarrays closer to the nearest. int arr [] =
In an array, select the number of more than half or equal to half. If there are two, return the number of first occurrences> = half.
# Include using namespace STD; int find (int * a, int N) {int candidate1, candidate2; int ntimes1, ntimes2, I;
// Calculate the maximum distance between nodes in a binary tree. The programming beauty is 3.8 # inlcude using namespace STD; struct node { node * lchild; node * rchild; /Data }; // because of the maximum distance, it must be the sum of
1. The LIB used is as follows: udplibrary. py is mainly used to test the UDP-based hexadecimal protocol. The read of the socket is blocking. The robot built-in timeout is used for timeout calculation, and the key words for repeated tests are
Character classification: Description of common C functions of wide character FunctionsIswalnum () isalnum () test whether the character is a number or letterIswalpha () isalpha () test whether the character is a letterIswcntrl () iscntrl () test
In the past two days, you need to install Ns for a network simulation. As a result, a bunch of errors are reported after downloading to ns for installation. You can find a solution online, but it is not very convenient. Here, I will write down my
Use Apache + wsgi to run your Django website-[development] 2010-09-18 | Tag: Django
Python
Copyright Disclaimer: During reprinting, please use hyperlinks to indicate the original source and author information of the article and this
Http://www.linuxidc.com/Linux/2012-02/54114.htm #
Sleep in user programs:
Sleep ()Usleep ()Nanosleep ()
Sleep () and nanosleep () Wake up the process after a period of sleep, but the implementation of the two is completely different.In Linux, the
1. In (yourandroidCode path)/out/directory to find this tool
Unyaffs: used to extract system. img
Mkyaffs2image: Used to package system. img
Haha, will the find command? Find out/-nameMkyaffs2image
Remember this directory. My is
~Introduction to Virtualization
Virtualization Definition
IBM: virtualization is the logical representation of resources and is not subject to physical constraints.
Common virtualization types
Infrastructure Virtualization
Document directory
1. Basic functions
In addition to Hg clone, the following commands must be executed under the Directory and subdirectory managed by Hg (the Directory and subdirectory have the same execution effect ).
1. Version library
Upgrading the inux kernel is the basic condition for learning the kernel. If the compiled kernel cannot run, the Linux kernel learning process will be like a mirror. In fact, there are a lot of related online
Kernel compilation and Upgrade tutorial.
This course is a key-driven, with emphasis on registration of IRQ interruptions in Linux as well as usage and work list usage.
Key resources used by mini2440
The interrupt pin corresponding to the I/O register corresponding to the key
K1 gpg0 eint8
This article assumes that you have understood the working principle of the watchdog and have 2440 datasheet in your hand. You can view the registers related to the watchdog at any time. I am only focused on analyzing the driver here. Sorry ~
I
Last night, I took the time to practice file I/O programming. Because embedded Linux is cropped by llinux, its system call and User Programming Interface APIs are basically the same as those of Linux, learning the basic programming of related
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