It indicates that any short read that may occur on an in endpoint should be treated as an error by the USB core. this value is only useful for reading urb from a USB device, not for writing URBS.
Urb_iso_asapIf this urb is synchronized, this bit can be set. If the driver wants this urb to be scheduled, as long as the bandwidth permits it, and set the start_frame variable in this urb. if the synchronized urb
Ubuntu version: Ubuntu Server 10.10In the morning of 2016-03-26, the CPU fan of a server computer was not turned on and the power was burnt out (damp reason) ...In 2016-03-28 intends to fix him, so and another colleague, the former colleague's computer, to do server, but only one of the idle, replaced the hard disk, changed the memory. Plug in the network cable, the network cable light is not bright, because the NIC is bad, to pay to buy a separate network card, but do not want to spend money to
Character device is one of the three major Linux devices (the other two are block devices, network equipment), character device is the byte stream form of communication I/O devices, most devices are character devices, common character devices include mouse, keyboard, monitor, serial, etc., when we execute ls-l/dev , you can see a large number of device files,C is
provide user-space drivers that match some Linux development versions (often obsolete). Although the user space driver is controversial, the kernel chooses to support it. The newest interface is called UiO (the previous kernel also has, but the new version makes a lot of changes), it was in a patch in version 2.6.22, and was formally incorporated into the kernel's code tree in 2.6.23. There have been some changes to this interface than before. As in
This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/aaa6695798/archive/2009/11/06/4776202.aspx
This part of all the structure of the Declaration can be found in the kernel source file usb.h, interested friends can read the source code.
USB devices are complex, but the Linux kernel provides a subsystem called USB core to handle most of the complex work, so this is what is described here as the interface between the dr
address backfunc () as the parameter through deviceiocontrol () to the device driver. After the device driver obtains the callback function address, it stores it in a global variable (such as Callback) and calls the get_cur_thread_handle () function to obtain the handle of Its Application Thread, and save the handle
Transferred from: http://blog.csdn.net/droidphone/article/details/23367051/Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Directory (?) [-]
Hardware structure
Working time series
Software architecture
SPI Controller Driver
SPI Universal Interface Package layer
SPI Protocol Driver
SPI Universal
Platform-related fields are often seen in device drivers and distributed across multiple corners of the driver. This is also an important mechanism in the 2.6 kernel, it will be helpful for analyzing drivers in the future: In the linux2.6 device model, the three entities of bus, device, and
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
-level data structures, or the interface between the hardware driver and the advanced data structure. The graphics console driver is a software device driver. One LCD controller driver loads and manages the display, and the graphic console colors the characters to be display
the value is smaller than the corresponding number of bytes. There is almost no actual number of bytes available or the signal is interrupted. If it fails,-1 is returned. If the value-1 is returned, see errno. You can confirm the return value in the actual device driver.
Error code:
-Eintr: The call is interrupted by the signal.-Eagain: When a file is opened using an unblockable (o_nonblock), read calls un
Article Title: Linux Device Driver framework, configuration files, and loading. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
This section describes the Linux Device Driver framew
driver similar to the USB function?
The USB driver must at least implement the following functions:
.Implement Part 0 of the endpoint in the USB Protocol and related to specific functions (the part that the UDC driver cannot help us complete ). For example, usb_req_get_descriptor and usb_req_get_configuration;After this function is completed, the USB host system
= "Igb_uio",. id_table = NULL,. Probe = Igbuio_pci_probe, . remove = Igbuio_pci_remove,};module_init (igbuio_pci_init_module); static int __initigbuio_pci_init_module (void) { int ret; ret = Igbuio_config_intr_mode (Intr_mode); if (Ret After the code has been collated, compared to the above simple UiO driver implementation, DPDK UiO implementation is also the first to initialize a pci_driver structure, in the Igbuio_pci_init_module () fun
---------------------------------------- This article is the original site, welcome to reprint! Reprinted please indicate the source: http://ericxiao.cublog.cn/http://blog.chinaunix.net/uid-20543183-id-1930820.html
------------------------------------------ 1: The forward tty name is derived from the abbreviation of byte by telex. Linux represents various terminals. Terminals usually correspond to hardware. For example, it corresponds to the keyboard and mouse of the
Disk_stats dkstats;#endifstruct Work_struct async_notify;};
This structure is a dynamically allocated structure. Some special processing of the kernel is required for initialization, and the driver cannot allocate the structure itself dynamically, but must be called.struct Gendisk *alloc_disk (int minors);//parameter is the number of secondary device numbers. After that, minors members cannot be ch
Input subsystem-architecture, driver, application, and input subsystemI. input subsystem architecture
The input subsystem consists of drivers in the driver layer, input core in the
Relationship among bus, device, and driver
Bus:As the connection channel between the host and peripherals, some buses are relatively standard and form many protocols. For examplePCI, USB, 1394, IIC, etc. Any device can select a suitable bus to connect to the host. Of course, the host may be the CPU itself. The memory is also connected to the host through the bus.
"Summary" What is UiO? UiO is the I/O running in user space, so why put I/O in user space?1, the reason that UiO appearsFirst, the hardware device can be divided into network equipment according to function, block device, character device, or according to the CPU connected to the way divided into PCI devices, USB devic
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.