ArticleDirectory
Pipi. c
Makefile
Create a device Node
Load driver
Test
Uninstall
[Linux Device Driver
Program (Third edition)] ---- blocking and non-blocking operations Pipi. c
# Include # include # include # include
System
# Uname-# View kernel/operating system/CPU Information# Head-N 1/etc/issue# View the operating system version# Cat/proc/cpuinfo# Viewing CPU Information# Hostname# Viewing computer names# Lspci-TV# List all PCI devices# Lsusb-TV# List all
Problem: The last time zlib was downgraded back to version 13.37 to run xetex. As a result, if you want to use convert to merge images into PDF files, a file in zlib cannot be found.
Analysis: it is not feasible to upgrade zlib. In that case,
Embedded Linux-LED driver instance development in 2440
I. Development Environment
MASTER: VMWare -- fedora 9
Development Board: mini2440 -- 64 MB Nand
Compiler: arm-linux-gcc-4.3.2
II. Implementation steps
1. hardware schematic analysis. The
Module. h contains a large number of symbols and function definitions required by the loadable module, including init. the purpose of H is to specify the initialization and clearing code. The purpose of struct file is in .Use Registered character
First download tomcat, URL: http: // 219.239.26.9/download/6520562/7734948/1/GZ/250/185/1279864093178_441/apache-tomcat-6.0.29.tar.gz
2) decompress the downloaded file
Tar-zxvf apache-tomcat-6.0.29.tar.gz
3) copy the file to the directory
The most commonly used build versions are arm-linux-gcc-2.95.3, arm-linux-gcc-3.4.1 and arm-linux-3.3.2, And now embedded development basically uses these, 2.95.3 for compiling the 2.4 kernel, 3.4.1 for compiling the 2.6 kernel, 3.3.2 is often
When you use gdb to debug a program, you are often confused about the use of some commands. Either you do not know the command or forget how to use the command.Haha, sometimes I am confused about what stack I am in. This is a clear view of my
It's a little complicated. You can ignore this and simply execute the commands I listed.
Method 1: In some cases, the new install Gforce Drivers do not supporte the "nouveau" module,It indicates that in some cases (probably because the kernel is
(1) configuration in Windows
(1) configure the local connection as follows:
(2) Configure VMware network adapter vmnet1 as follows:
(3) Configure VMware network adapter vmnet8 as follows:
(2) configuration in Linux
(1) the configuration of the
Introduction to strace, a heavyweight command in LINUX (original)Author: Yu Chao Email: yuchao86@gmail.com
Users who often use LINUX may often wonder: how does linux Execute a command and get the correct output?For example, if you enter a pwd to
Download the latest TBB library. My database is tbb30_20100822oss_src;Tar zxvf tbb30_20100822oss_srcGo to the extract directory and execute make.Cd buildChmod + x *. shSh generate_tbbvars.shSh tbbvars. shCd linux_intel64_gcc_cc4.1.2_libc2.5_kernel2.6
This program is implemented in C language on the Linux platform
There are two implementation files corresponding to the m1.h m2.h header file: m1.c m2.c debugging file test. c
The case code is as follows:
M1.h
#includevoid m1_print(char *str);
M2.h
1. server code:
# Include # include # include # include int main (int argc, char * argv []) {int sockfd, new_fd; struct sockaddr_in server_addr; struct sockaddr_in client_addr; int sin_size, portnumber; char hello [] = "Hello! Are You Fine? \ N
1. Create a message queue:
Int msgget (key_t key, int flags );Function: If the IPC_CREAT bit is set in flags, create a new queue.The value of the key.When the key value is IPC_PRIVATE, it indicates that the key value is generated by the system.If
1. Create shared memory
Void * shmat (int shmid, void * shmaddr, int shmflg); this system call maps the shared memory zone corresponding to shmid to the virtual address space of the process, shmaddr is the starting address of the specified ing. If
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