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), & (
This time, the main function is entered, in arch/x86/boot/Main. C.
Void main (void){/* First, copy the boot header into the "zeropage "*/Copy_boot_params (); # copy the HDR parameter to the boot_params.hdr struct, in the file boot/bootparam. h.
/*
Multi-Process Synchronization in Linux: For multi-process synchronization in Linux, the operation of a single semaphore is no longer possible. For multi-process communication, the signal set method can be used, A signal set contains multiple
Http://hi.baidu.com/%BB%F0%D0%C7%C6%B0%B3%E6911/blog/item/3c01cb8c3c5bccab0f244491.html
Driver:# Include is to find the source file under the linux-2.6.29/include/Linux.# Include is to find the source file under the
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 *
LINUX multi-thread function analysisLINUX multi-threaded functions use the following threePthread_create (), pthread_exit (), pthread_join (); they are all in the header file . Static library-lpthread must be added during compilation
The
Select in network programming in Linux
# Include
# Include
Int select (INT maxfdp1, fd_set * readset, fd_set * writeset,
Fd_set * effectset, const struct timeval * timeout );
Return> 0: Number of ready descriptive words
-1: Error
0: timeout
Struct
In Linux, modify the IP address, DNS, and route command line to set the IP address in the Ubuntu command line.CAT/etc/Network/interfaces
# This file describes the network interfaces available on your system
# And how to activate them. For more
Name: crontab Permission: All Users Usage: Crontab [-u user] FileCrontab [-u user] {-L |-r |-e} Note:Crontab is used to allow users to execute programs at a fixed time or interval. In other words, it is similar to the user's time table. -U user
Author: Chinese
What are the steps required to start Linux? This article describes in detail the roles of different running levels in startup.
Linux seems to be a monster for advanced users on the DOS/Win9x/NT platform. No
Config. sys, without
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.
Because there are too many Linux commands, this involves only common ones.
Chapter 4 Introduction to File Viewing/editing1. Cat commandCreate cat> hello.txtChenweitangCTRL + dView a single cat hello.txtView multiple cat hello.txt ge.txtShow cat
Install and configure tomcat in Linux
1. download and install the corresponding JDK and configure the Java environment.
Official Website:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html
Download and compress
How can I check whether the network card works in full or half duplex mode in Linux?MII-Tool
Linux :~ # MiI-ToolEth0: no linkEth1: No autonegotiation, 100basetx-hd, link OKLinux :~ #
Linux :~ # MiI-tool-FMII-tool: option requires an argument --
It took some time to learn about the Linux MTD layer. The following is a brief summary!
The following figure shows the MTD layer structure.
The MTD layer implements a bridge between the file system and flash. The following describes the
Install
1. Go to the http://java.sun.com/j2se/1.4.2/download.html to download a Linux platform JDK, it is recommended to download RPM self-extract format (rpm in self-extracting file, j2sdk-1_4_2_06-linux-i586-rpm.bin );2. Upload the file to a Linux
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