Original URL: http://www.cnblogs.com/biglucky/p/4059582.html
The three main members of Linux I²C subsystem I2c_adapter, I2c_driver and I2c_client are briefly described in (a). The relationship of the three is also described in the previous section. There should be a preliminary understanding of the Linux I²c subsystem. The following further analysis of their relationship to the code layer, I think the better the understanding of their relationship, the more conducive to the development
USB Device Request Command: Bmrequesttype + brequest + wvalue + Windex + wlength
Number Value Name
(0) 0 Get_status: Used to return the status of a specific recipient(1) 1 clear_feature: To remove or prohibit certain features of the receiver
(x) 2 for future retention(2) 3 set_feature: Some of the features used to enable or activate the command receiver
(x) 2 for future retention(3) 5 set_address: Used to assign an address to a
Combinergn
Combine two areas into a new zone
Combinetransform
Drive the world to transform. It's equivalent to two conversions in sequence.
CreateCompatibleDC
Create a memory device scenario that is consistent with a specific device scenario
CreateDC
Create a device scene for a specialized
1. Background
Sampleblk is a Linux block device drive project for learning purposes. One of the Day1 source code to achieve a minimalist block device driver, the source codes only more than 200 lines. This article mainly revolves around these source code, discusses the Linux block device drive development the basic knowledge.
Developing a Linux driver requires a
User Space Device ManagementAll the devices that the user space sees are placed in the/dev directory (of course, just a directory, which can be changed), and the partition where the file system resides is also placed in that directory as a separate device. The previous version of the 2.4 has been DEVFS, this idea is very good, in the kernel to achieve dynamic management of disk devices. It can be done when
1, what bare equipment? Character device? Block device?Bare devices: Also called bare partitions (raw partitions), is a special character device that is not formatted and is not unix/linux by the file system to read. A bare device, also called a bare partition (raw partition), is a special character
3. Device Files
Unix-like systems are based on the concept of files. They can process I/O devices as special files such as device files, the same system call used to interact with common files on the disk can be directly used for I/O devices.
According to the basic features of the device driver, the device files can b
Linux systems integrate devices and drivers into device-driven models to manageDevice driver Features:1, initialization and release of hardware devices2, manage the device, including the parameter setting, and provide the unified operation interface to the device.3. Read the data that the application passes to the device
For Linux systems, the function call relationship between the general character device and the driver is shown inDescribes the process by which a user-space application invokes a program through a system call. In general, in the driver design, the struct file and struct inode are the two structures.User space when opening a character device using the open () system call function ( int fd = open ("dev/demo"
the watchdog (watchdog) is divided between the hardware watchdog and the software watchdog. Hardware watchdog is the use of a timer circuit, its timing output is connected to the reset end of the circuit, the program in a certain time range to the timer 0 (commonly known as "feed the Dog"), if the program fails, not reset the watchdog during the scheduled period, Causes the watchdog timer overflow to generate a reset signal and restart the system. The software watchdog principle is just the same
USB devices are becoming more and more common, almost all devices have a tendency to USB, such as printers, cameras, MP3, MP4, reading machines, but many times, we use USB devices is not so smooth. Often appear "Unrecognized USB device" prompts, then why this prompt, how to solve it
Steps/Methods
The front USB cable is connected incorrectly. This type of failure occurs when the USB cable on the motherboard corresponds to the front USB connector
We studied the character device structure Cdev Linux character device driver Development (i)--character device drive structure (upper) below continue to learn several important data structures of character devices.
First look at the following diagram, which is the virtual file system in Linux, general device files and
Knowledge Collation –linux character device Driven Development Foundation
Linux driver I understand: encapsulates the operation of the underlying hardware and provides an operational interface to the upper application
The article in some places did not post the corresponding function prototype, please check it yourself, or use souceinsight to search its own kernel source tree (I use this way to refer to the use of functions)
simple
○ DescriptionNote is applicable to linux kernels later than 2.6.10.Take note of the scull program provided by Linux Device driver3 (main. C and scull. h) as the record main line, and in the order of various system calls and function call flows in the driver. For example, module_init () and module_exit () are a pair of system calls, which are generally discussed together in books, but not in this note, therefore, module_init () is placed at the beginni
Drive Life One-click Solution Device Manager has a fork, question mark, exclamation point tutorial come on! Sometimes we will see the device Manager in the cross, question mark or exclamation point, do not worry, see the drive life a key solution Device Manager has a fork, question mark, exclamation point tutorial, simple can solve the problem!
In the Windows op
about how to write a misc device, in the previous article has introduced the approximate process, now let us implement a simplest Misc device driver. http://blog.csdn.net/morixinguan/article/details/52700146The following four articles about the preceding character device can be used as a reference:http://blog.csdn.net/morixinguan/article/details/55002774http://bl
Linux Device driver inductive summary (eight): 3. The layering and object-oriented thought of equipment management
Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The previous section describes the relationships and operations of the bus, device, and driver functions. Starting from this section, we introduce the layered thinking and object-oriented thinking in equipme
Tags: important contex ICA mod options map kernel variable EALLinux network devices are different from character devices and block devices, and no files correspond to network devices. The application operates the network device through the socket.The network device driver belongs to the data link layer, communicates with the IP/ARP protocol, and directly operates the physical layer chip (NIC Chip). The thre
SPI is "Serial peripheral Interface" abbreviation, is a four-wire synchronous serial communication interface, used to connect microcontrollers, sensors, storage devices, SPI device sub-primary device and two from the device, for communication and control of the four lines are:
CS Chip Selection Signal
SCK Clock Signal
Miso the data input from the
Memory mapping is one of the most interesting features of modern Unix systems. As for drivers, memory mappings can be implemented to provide direct access to device memory by user programs.
A clear example of a mmap usage can be seen from a subset of the virtual memory areas that are viewed to the X Windows system server:
Cat/proc/731/maps
000a0000-000c0000 rwxs 000a0000 03:01 282652/dev/mem 000f0000-00100000 r-xs
000f0000 03:01 282652/dev/mem
004000
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.