9. Summary
Relationship between 9.1 bus, device, driver and class
L bus is equivalent to a container. It is the management mechanism of device and device_driver. It contains a device set (devices_kset) and a driver set (drivers_kset ), indicates
Tar-CVF ***. TAR DirectoryTar-xvf ***. Tar
*************************Compress EMV into a tar package
EMVCD domains/emvdomain/Ls-LRTPWDCD EMVLs-LRTPWDCD/EMV/desktop ***** FTP pathLs-LRTEMVTar-CVF emv20120326.tar EMV *** into a tar package
1. Linux System Structure
1. Linux system: consists of user space and kernel space.
User space is composed of the software at the user application layer,ProgramAnd some C library and configuration files (stored in the etc directory). The kernel
A gateway is a vro in a network and acts as an access point to access other networks. When the IP address does not match the IP address in the route table, the default gateway is used.
Use netstat-R or route-N in Linux to view the default gateway.
Important data structures in character Devices
Most character-driven designs three important data structures struct file_operationsStruct FileStruct inode
I. File OperationsIn the previous article, I have already introduced how to use device
Cu homepage comment fh265> blog, Weibo, album, personal center, friend message [exit] Comment
Announcement: remembering that the Dennis Ritchie event is about to kick off! Xiao Bai's blog-improve yourself and share others
Xiaoyun.blog.chinaunix.net
Fork is the meaning of fork in English. In fork, take the meaning behind it. The fork function creates a sub-process. The sub-process and the parent process start to run the program after the split at the same time (in fact, it is a CPU time-sharing
========================================================== =============================== Original blog, reprinted please declare the source of Electronic coffee (original id blue rock) ========================================================== ====
Macro mark
The vast majority of initialization functions and variables in the Linux Kernel use a variety of macro tags, such;
Static int _ init pci_porc_init (void ){
...
}
Static char version [] _ devinitdata = drv_name ".."
Module_init (...)
Where
Swap is used if the system's physical memory is used up. The system will run slowly but still run. If swap space is used up, the system will have an error. Generally, the error "application is out of memory" may occur. In severe cases, the service
From: http://blog.csdn.net/wenxy1/archive/2008/12/23/3591243.aspx
/Proc//mapsView how the virtual address space of a process is used.The file has six columns:Address: Library address range in the processPermission: Virtual Memory permission, r =
1) OverviewThe stack is the memory area of the user space, and the process uses the stack as the temporary storage.
. The stack stores local variables in the function. In the life cycle of the function, the variables can be pushed into the stack.
# Include Int getrusage (INT who, struct rusage * r_usage );
Getrusage can be used to obtain information about resources of a process. For example, user overhead time, system overhead Time, and received semaphore;
The following is the structure of
1. hardware features
1.1 Overview
The I2C bus is a two-line serial bus developed by Philips. The two cables are the clock line (SCL) and two-way data line (SDA ). The I2C bus only requires two wires, so it consumes less space on the circuit board.
Linux Kernel boot parameters
1. "Boot ="This parameter indicates the name of the device that contains the boot sector (for example,/dev/had). If this option is ignored, the device is partitioned from the current root partition.Read the Boot Sector.
2
Find and solve program errors in Linux
Steve best (sbest@us.ibm.com)JFS core team member, IBM
You can use various methods to monitor the running user space program: You can run the debugger for it and debug the program in one step,Add print
Some Linux users (commonly NVIDIA graphics card users) can enter the xwin desktop After configuring the X server, but the screen is distorted. What should I do? Of course, you can use the adjustment button that comes with the display to correct it.
/*
* Gcc-wall-O checkvm. c
* Check Linux OS in vmare?
* By alert7
*
*/
# Include
# Include
Struct idtr {Unsigned short limit;Unsigned int base;} _ Attribute _ (packed ));
Unsigned int get_addr_idt (){Struct idtr;ASM ("sidt % 0"
After upgrading the kernel of RedHat Linux 9.0 to 2.6.18, we began to learn how to write the driver.
In ldd3, there is a helloworld module. The C program code is as follows:
# Include # Include Module_license ("dual BSD/GPL ");
Static int hello_init
# Whereis find installed software
Searching for a file in Linux is troublesome. After all, in Linux, we need to use a dedicated "Search" command to find files on the hard disk.File expression formats in Linux are very complex. Unlike windows, they
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