1. read/write Functions
The READ function reads data from open devices or files.
# Include
Ssize_t read (int fd, void * Buf, size_t count );
Returned value: the number of bytes read successfully. If an error occurs,-1 is returned and errno
1. Install gcc
Sudo apt-Get update
Sudo apt-Get install build-essential
2. Install sun-java6-jdk
Sudo VI/etc/APT/sources. List
Add Deb http://archive.canonical.com/ubuntu lucid partner save exit
You can directly copy the previously
This Nic has never been used before.
The simplification is complicated first. You can outline it and get a global view.
0, Introduction
1. Framework
2. Implementation
0, Introduction
The NIC device has a special position in Linux. Unlike
In Linux, touch command parameters are not commonly used. They may be used when you use make to modify the file timestamp or create a new file that does not exist, the following describes how to use the touch command parameters in Linux:
Touch
1. This book uses scull as an example to introduce the character device driver.Program.
Scull is a character device driver that operates the memory area.
2. Obtain, cancel, and register a device number.
@ Get the dev_t device number
The
Framebuffer provides abstraction for graphics hardware. I have to understand that this device can be used to control the video card. If there is a video card, in the file system, if it is mapped to/dev/fb0., It is mapped to/dev/Fb1, and so on. Many
(1) download the jdk-1_5_0_04-linux-i586-rpm.bin from sun, create a new Java folder under/usr, put the installation package under the/usr/Java directory, and then execute the following command:
# Chmod 777 jdk-1_5_0_04-linux-i586-rpm.bin
#./Jdk-1
Searching for a file in a vast Linux environment is a terrible task. I have tried many methods. The simplest and most convenient method is to use the locate command with the updatedb command:
For example, we want to find a file with the "Chen"
The following two sections of code are explained:
Derived from watertree Maling:
"Write is 16 bytes/cycle, but that is througput. That is to say, we need to make every cycle have a write operation into the write buffer after allocation stage to
Published by yellow-haired chicken at a.m. on November 11:
If you installed it with an RPM package, you can run the rpm-e XXX command to uninstall it.
__________________
C3 1G + hy512sdram + cool fish 4 40g + cool fish 120g + gigabyte 815ep +
# Include # include # include # include # include # include # include # include # include # define bind_port 9999 # define buffsz 4096int main (INT argc, char * argv []) {// extern int socket (INT _ domain, int _ type, int _ protocol) //
Manage Disk File Systems
Mount device name mount point
Mount/dev/fd0/mnt/floppy
Optical Drive (IDE)/dev/CDROM (à/dev/hdx)
Optical Drive (SCSI)/dev/scdn (n = 0, 1 ...)
Hard Disk (IDE)/dev/hdx (x = A, B, C ...)
Hard Disk (SCSI)/dev/sdx (x = A, B,
Like message queues, the shared memory also has its own data structure, as shown below:
Struct shmid_ds {Struct ipc_perm shm_perm;/* ownership and permissions */Size_tShm_segsz;/* size of segment (bytes )*/Time_tShm_atime;/* Last attach time
I. Separation and hierarchy of Driver Design
Hierarchical Design can improve code reusability. It uses the existing code to perform some overloading or modifications to complete the driver design.
In addition to hierarchical design, there are also
Today, I encountered a user question in the embedded Linux Group. The Chat record is as follows:
& Quot; zookeeper @ & (25716199) 14:35:42 how to get the make tool? & @ & (25716199) 14:36:02 is it a program in Linux or is it in a terminal? & @
Many people always ask this question, so here is a summary document for your reference.
Is the document originally in http://www.armjishu.com/bbs/viewtopic.php? Id = 158
Here, we must first describe that the following steps are for Linux systems and
View the time zone: # Cat/etc/sysconfig/clock
View System Time: # date
Modification date: # date-s 25/10/2012
Modification time: # date-s 21:45:36
Use the ntpdate command to automatically synchronize time. You can find the relevant
Apache concurrent connections and bandwidth control in LinuxThe stability, security, performance, and low price of Linux + Apache are gaining more and more market share. More and more friends are using Linux + Apache as website servers, while Apache
The introduction to the Windows Startup Process is rare. All users who have used Linux may notice that when a computer is started, a lot of information appears on the screen. In general, we can see this information through the following
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