1. Learn to write simple makefile
2. Compile an applicationProgramCan be run with makefile
3. Learn to write the driver makefile
4. Write a simple char driver. The makefile is compiled and can be insmod, lsmod, or rmmod. Print Hello world
Step 1: Build the environment
1. Add Zend repository to/etc/APT/sources. List
VI/etc/APT/sources. List
Add at the end of the file
Deb http://repos.zend.com/deb/pe PE non-free
Save the file.
2. Run the command to add
According to foreign media reports, Linus Torvalds, the father of Linux, recently said that it was not expected that Linux would become so popular today. Towoz said that Linux was originally published
Source codeIt is not for money, fame or fortune,
Switch from network:
SIGABRT is to abortProgramIt can be captured, but cannot be blocked. After the processing function returns, all opened file descriptors will be closed and the stream will be flushed. The program will end and core dump will
1. decompress the package first.Arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz
# Tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20101103.tgz-C/Usr/local/ARM/4.5.1
Note: C is in upper case, and C is followed by a space, which is the first letter of the English
Copy local file to remote server
SCP filename user @ server: new_filename
SCP-r dir user @ server: new_dir
It will make one connection from local to remote
Copy remote file to local
SCP user @ server: Dir/file_name
PrefaceOfficial WebsiteHttp://jakarta.apache.org/tomcat/connectors-doc/2004/11/15/has announced that JK2 will not be further developed.The reason is that the installation and configuration of JK2 are complex and difficult to attract developers'
As computer peripherals become more and more abundant, device management has become an important task of modern operating systems, which is the same for Linux. Each time a new version of the Linux kernel is released, a number of device drivers will
Http://linux.chinaitlab.com/c/806015.html
Function prototype:
# Include "stdio. h"
File * popen (const char * command, const char * Mode)
Parameter description:
Command: a pointer to a shell command string ending with null. This line of command will
The directory structure is:
INC/Hello. h
Src/Hello. c
Main/Main. c
Makefile
File Content:
Hello. h:
Void Hello (char name []);
Hello. C:
# Include void Hello (char name []) { printf ("Hello % s! /N ", name); }
Main. C:
# Include # include
Null pointers are generally used for validity detection. In fact, there is a conventional rule, that is, invalid pointers are not necessarily null, just for the sake of simplicity, as long as the pointer is invalid, the rule sets it to null. The
I was not going to start my computer today. I was too sleepy and wanted to go to bed. However, a buddy sent me a text message and asked me a question. So I turned on my computer, I did not expect it to be a very representative problem. By the way,
These macros include _ init, _ initdata, _ initfunc (), asmlinkage, entry (), and fastcall. They are defined mainly in include \ Linux \ linkage. h and include \ asm-i386 \ init. h and some other. H files.
1) _ init location: Include \ asm-i386 \
// Server/******** server program (server. c) ************/# include # include # include # include # include # include # include # include # include # include int main (INT argc, char * argv []) {int sockfd, new_fd; struct sockaddr_in
1. Add-d_file_offset_bits = 64 to the compilation option to solve the limit on 2 GB files in Linux.
// Example. c# Include Int main (INT argc, char * argv []){File * FP;If (FP = fopen ("test. dat", "W +") = NULL)Return;Int A = 0;Char data [1024] = "
Linux is a required command. Linux provides a large number of commands that can effectively perform a large amount of work, such as disk operations, file access, directory operations, process management, and file permission settings. Therefore,
Introduction to Linux program design-thread operations
7)Create a thread in LinuxThis article describes how to create and use threads in Linux. threads in Linux are a very complicated problem.It is good for me to learn about threads from time to
Code segments protected by mutex, whether read/write, one thread occupies some time, other threads must wait.
The read/write lock can be read by multiple threads at the same time, as follows:
When the read/write lock is in the write lock status,
SVN is an open-source version control software. People who have worked in team development must be familiar with it, and those who have never used it will also use the corresponding software .. google is doing better in version control...
The Google
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