A new set of driver management and registration mechanisms have been introduced from Linux 2.6:P latform_device and Platform_driver.Most of the device drivers in Linux can use this mechanism, the device is represented by Platform_device, and the driver is registered with Platform_driver.Compared with the traditional
1. Device Driver. In the Linux device model, the device driver is represented by the device_driver structure.
Struct device_driver {const char * Name;/* name */struct bus_type * bus;/* attached bus */struct module * owner; const struct of_device_id * of_match_table; INT (*
Path for Linux Device Driver engineers-basic principles and framework of network device drivers
K-Style
Reprinted please indicate from Hengyang Normal College 08 electric 2 K-Style http://blog.csdn.net/ayangke,QQ:843308498 mailbox: yangkeemail@qq.com
1. Linux network subsystem
At the top of the Linux network subsystem is the system call interface layer. It provi
USB urb (USB request block)
Kernel 2.6.29.4The USB device driver code communicates with all USB devices through urb. Urb uses the struct urb structure description (include/Linux/USB. h ).
Urb sends or receives data asynchronously from a specific endpoint of the same USB device. A USB device
Document directory
Is a block device driver a file system driver (FAL + FMD?
Is a block device driver a file system driver (FAL + FMD?
FAL, FMD, file system, device,
Brief introduction
A block device driver accesses a device primarily by transmitting a fixed-size random data
Linux kernel video block devices are basic device types that differ from character devices
The Linux block device
1. device. The device structure is used to describe the device in LDM.
Struct device {/* parent device, usually a bus or host device */struct device * parent;/* Private Data Pointer: S
I. What is IOCTL?IOCTL is a function used by the device driver to manage the device's I/O channels. The management of the I/O channel is to control some features of the device, such as the Serial Transmission baud rate and the motor speed. The number of calls is as follows:
Int IOCTL (int fd, IND cmd ,...); FD is the File Identifier returned by the open function
From one point of view, the role of a device driver is to provide a mechanism, not a policy. When writing drivers, programmers should pay particular attention to the following basic concept: When writing kernel code to access hardware, do not impose any specific policy on the user. Because different users have different needs, the driver should handle the problem
Preface
Device tree is a data structure used to describe hardware, similar to a plate-level description language, originating from OpenFirmware (of). In the current widely used Linux kernel 2.6.x version, for different platforms, different hardware, there is often a large number of different, poor portability of the board level Description code to achieve these different platforms and different hardware special adaptation needs. But the plethora of p
Using asynchronous notifications in device drivers can make access to the device accessible to the application by the driver when it is accessible. Therefore, applications that use nonblocking I/O do not need to poll the device for access, and blocking access can be superseded by asynchronous notifications like "break"
From one point of view, the role of a device driver is to provide a mechanism, not a policy. When writing drivers, programmers should pay particular attention to the following basic concept: When writing kernel code to access hardware, do not impose any specific policy on the user. Because different users have different needs, the driver should handle the problem
Main device number and secondary device number
Those names are called special files, device files, or nodes that are simply called file system trees, and they are usually located in the/dev directory
Typically, the main device number identifies the driver that co
According to ldd3, the Linux device model can be considered as an advanced textbook, which is unnecessary for most program authors. But I personally think: For an embedded Linux underlying programmer, this part of content is very important. For example, I learned about ARM9. many bus (such as SPI, IIC, IIS, and so on) have been written into subsystems in Linux, and no driver needs to be written by myself; u
One, what does the main device number and the secondary device number mean? Linu kernel is if the main device number to find the driver, the secondary device number to find the device.A: Usually a main device number represents a
Video:Driver Registration: Http://pan.baidu.com/s/1i34HcDBDevice registration: Http://pan.baidu.com/s/1kTlGkcRBus _ Device _ driver registration process? Registration flowchart? Devices generally need to be registered before they can register the driver– Now more and more hot-pluggable devices, in turn. Register the driver
) { return Platform_driver_probe ( s3c64xx_spi_driver, s3c64xx_spi_probe);} Subsys_initcall (S3c64xx_spi_init);Obviously, the system initialization phase (Subsys_initcall phase), through S3c64xx_spi_init (), registered a platform driver, the name of the driver is exactly the same: S3c64xx-spi, naturally, the platform bus will put it and the previous section defined platform _device matches, and the t
Linux device drivers are in the form of kernel modules, but the modules are not necessarily drivers. The driver can be compiled into the kernel, when configuring the kernel, if a configuration item is set to M, then it will be compiled with the kernel compiled into a module, but to add drivers to the kernel will make the kernel very large, and in addition, modify, delete the
1. Overview
2. system initialization platform device
3. The driver uses platform device
1. Overview
The Linux-2.6.11 introduces the concept of a device model that mounts most device drivers to a virtual bus.
Its purpose is:
1) provides friendly user interfaces. You can f
0. Preface Graduate life all are on the right track, I also started a new study, because really do not want to make storage, so decided to study with the elder brother device driver, read the book two weeks, finally a little clue, began to record it!1. Preparatory workA) View the kernel versionUname-rb) Install kernel source tree (http://www.cnblogs.com/Jezze/archive/2011/12/23/2299871.html) Download the
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.