Character Device Driver:
1. Generally, we use APIs that dynamically allocate device numbers:
Int alloc_chrdev_region (dev_t * Dev, unsigned int firstminor, unsigned int count, char * Name );
Dev is a function used for output. After successful call, the first number of the allocated range will be saved.
Void unregister_chrdev_region (dev_t first, unsigned int count );
The above function allocates device numbers for
Android Deep Exploration ( volume 1) HAL with Drive Development Chapter I Android system porting and driving development Overview reading notesThis chapter isAndroidsystem porting and Driver development Overview of the specific explanation. First,Androidis divided into four layers of architecture. At the bottom of it isLinuxkernel. And then, respectively,C + +code Base,Android SDK Aand applications. andAndroidtransplantation is also divided into syste
Laptop installed sound card driver error no appropriate Driver to be installed
Cause Analysis:
There are Realtek and conexant two kinds of sound cards, when the system can not automatically identify the device when there will be an error.
Solution:
Enter the corresponding folder double-click Setup to install the driver
If Realtek's sound card enters the
We open "Drive Wizard" software in the computer, the effect is as follows
In the Open interface we just click on the second "driver" below
Then you will automatically get all the drivers you want to upgrade. We click on "Upgrade" to start downloading the driver files.
The driver will be installed automatically when the download is complete.
[Microsoft] [ODBC driver manager] no data source name is found and default driver error information is not specified:
Source: Microsoft ole db Provider for ODBC Drivers
Description: [Microsoft] [ODBC driver manager] no data source name found and default driver not specified
Conn code:
function conn(){ try {
Driving life may be driven by the installation of an Apple phone, we just drive the life on the computer, and then turn on our click "Update Now" button to update, this drive life can help us install the latest driver.
Click to open the peripheral driver interface, you can see that the computer all external access to the USB input device, will appear in this interface. Click on a device, you can view t
Original article: Documentation/I2C/upgrading-clientsTranslator: Guo shaobei2010/05/10
Update I2C drivers to the new 2.6 Driver Model========================================================== ==========
Note: the I2C driver here refers to the I2C client driver, for example, RTC, USBTransceiver driver and so on.
Ben doo
Call other driver functions in the driver (fastcall)
Author: Lai yuping (auly) aulyp@163.com
In embedded systems, some communication ports are public, such as IIC ports and serial ports. Drivers of these ports are usually written by the OEM manufacturer and tested, relatively stable. We do not need to write an IIC driver when developing drivers for other devices
This kind of driver mainly presents streaming function interfaces, including XXX_Init, XXX_Deinit, XXX_Open, XXX_Close, XXX_Read, XXX_Write, XXX_Seek, XXX_IOControl, XXX_PowerUp, XXX_PowerDown, etc, note that the preceding interfaces must be output, and XXX must contain three characters. Otherwise, an error occurs. You can manually call the RegisterDevice () and DeregisterDevice () functions to load and uninstall the
Kernel 2.6.29.4 USB devices are actually complicated, but the Linux Kernel provides a subsystem called USB core to handle most of the complicated work. Therefore, the interface between the driver and USB core is described here.In the USB device organization structure, there are four layers: device, config, interface, and endpoint.A brief description of these four layers is as follows:A device usually has one or more configurations.Configuration often
Linux Device Driver Article 2: How to implement a simple hello world Driver
The previous article introduced the concept of the linux driver and the basic category of the device driver in linux and the basis and differences of each category, this article describes how to write a simple test
1, create a device node in the/sys/class/directory, such as creating a CLASS_TEST_USB device node[CPP]View Plaincopy
Static struct CALSS *test_class;
Test_class = Class_creat (This_module,"Class_test_usb");
2, create another device node in the CLASS_TEST_USB directory android0, as follows[CPP]View Plaincopy
struct device *dev;
dev = device_creat (Test_calss,null,mkdev (0,0), NULL,"android0");
if (Is_err (dev))
return Ptr_err (dev);
3, create severa
The driver Microsoft Print to PDF required for the printer is unknown. Before logging on, please contact the Administrator to install the driver ., Microsoftprintpdf
After this problem occurred, I felt very confused because the printer was not installed on the server. Where did the printer come from?
Through Baidu search, I found a post on the Internet to answer my questions. Original post address: http:/
This is a creation in
Article, where the information may have evolved or changed.
Problem:2015/12/04 17:03:36 sqldb.go:2166:sqldriverconnect: {IM005} [MICROSOFT][ODBC Driver Manager] driver Sqlallochandle on SQL_ HANDLE_DBC failure
Environment: Go language writingSQL SERVER DatabasePackages used by the "CODE.GOOGLE.COM/P/ODBC" database operation
The program just started, running all right, but after a perio
I. Linux USB driver levels
1. devices, configurations, interfaces, and endpointsThe logical organization of a USB device consists of four layers: device, configuration, interface, and endpoint.
A device usually has one or more configurations:
Each USB device provides different levels of configuration information, which can contain one or more configurations, different Configurations enable devices to exhibit different combinations of functions (
Kernel:
Implementation Process of request_irq (riq, handle, irqflags, devname, devid );
Overall idea of Interrupt driver and Application Design:
Driver code implementation process:Third_drv.c
# Include
Application code implementation process:Thirddrvtest. c
#include
Access control is sometimes critical for the reliability of a device node. This part of content is only modified on the open and release methods, and some check mechanisms are added.
Exclusive Device
The most rigid access control method is to allow a device to be opened (exclusive) by a single process at a time, which is the simplest access control for a device driver. The implementation is very simple. For specific code, see the experiment source co
USB connection mode installation drive:
1, put the drive CD into the computer optical drive, and then open the disc, and then pop-up window we select "I have read and accept this License agreement", click Next, as shown in the following figure:
2, the following interface we selected "USB":
3, check the "software and utilities to install", and then click Next Action:
4, click "Advanced Options"-"Browse" This is to replace the driver installat
This article allows reprint, please specify the source:Http://blog.csdn.net/fulinusThe Linux kernel code is too big, a small module will let you unprepared, this afternoon resolved to take the SPI drive a good look.First analyze the spidev.c file, which defines the members in the struct file_operations structure. Members have Spidev_write, Spidev_read, and Spidev_ioctl, and the first two implement half-duplex communication, which implements full-duplex communication. Of course there are open and
ifeq (Some of them are common or we have seen, the first oneIfneq ($ (kernelrelease),)at present, it is useful to refer to the origin ofLinuxunder the source root directoryMakefilewhen compiling the kernel,Kernelreleasemacros are defined, so if you start from the source root directory Makeit will behello.oThe module is compiled into the kernel. KERNELDIR: =/ home/zp1015/desktop/linux-2.6.32.2 kerneldir Assignment, This variable is used to refer to the kernel source directory that we used l
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.