Questions tagged [driver]

Device driver or software driver is a computer program allowing higher-level computer programs to interact with a hardware device. This tag should only be used for questions related to driver development, as questions about finding or installing drivers are off-topic for Stack Overflow.

A driver typically communicates with the device through the computer bus or communications subsystem to which the hardware connects. When a calling program invokes a routine in the driver, the driver issues commands to the device. Once the device sends data back to the driver, the driver may invoke routines in the original calling program. Drivers are hardware-dependent and operating-system-specific. They usually provide the interrupt handling required for any necessary asynchronous time-dependent hardware interface.

A device driver simplifies programming by acting as translator between a hardware device and the applications or operating systems that use it. Programmers can write the higher-level application code independently of whatever specific hardware device.

https://en.wikipedia.org/wiki/Device_driver

This tag should only be used for questions related to driver development, as questions about finding or installing drivers are off-topic for StackOverflow. Assistance with identifying, locating, and installing drivers may be obtained at SuperUser, Unix & Linux Exchange or in the case of server-related and enterprise-level hardware, ServerFault.

5942 questions
16
votes
2 answers

How to write Linux driver module call/use another driver module?

I'm developing a Linux driver loadable module and I have to use another device in my driver.(kind of driver stacked on another driver) How do I call/use another driver in my driver? I think they are both in the kernel so there might be a way that…
teerapap
  • 5,303
  • 7
  • 33
  • 40
16
votes
6 answers

Cannot open include file: 'ntddk.h'

I'm been trying to get into driver development (queue the "don't do that") I have been looking at this msdn page and after installing the WDK (Windows Driver Kit) 10 I am still unable to compile the example that they use on that page. I have looked…
Ezzy
  • 1,423
  • 2
  • 15
  • 32
16
votes
4 answers

Does a Go Mysql driver exist that supports multiple statements within a single string?

I'm trying to find a MySql driver that i can use with Go which supports issuing multiple SQL statements in one call. For example i might wish to create a database using the following SQL: DROP SCHEMA IF EXISTS foo; CREATE SCHEMA IF NOT EXISTS…
Gary Willoughby
  • 50,926
  • 41
  • 133
  • 199
16
votes
4 answers

Writing a custom jdbc driver in java a very basic one

I have web service which I need to expose through JDBC due some BI tools software restrictions. Very limited support required few defined select queries. What I understand that I need to implement all the classes under the interface java.sql to…
RockSolid
  • 488
  • 1
  • 4
  • 12
16
votes
2 answers

64 bit ODBC Exception

I am getting the following ODBC exception when I moved my development platform from Windows XP X86 to Windows 7 X64: ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and…
Jrud
  • 820
  • 3
  • 7
  • 21
16
votes
1 answer

Writing a game controller driver for some hardware connected via USB

I'm looking to create a driver for a game controller I have (a cobalt flux www.cobaltflux.com ). The physical controller itself has nine face buttons and two control-box buttons (start/select). The control box has a usb port, but as far as I can…
user2601064
  • 281
  • 3
  • 10
15
votes
2 answers

What changed in the driver signature requirements for Windows 8?

I've got a passthrough NDIS intermediate driver, consisting of two .inf files (one standard and one miniport) and a .sys file. Because of the Windows 7 driver signing requirements, I had to get a code-signing certificate and sign the .sys file in…
jeffm
  • 3,120
  • 1
  • 34
  • 57
15
votes
3 answers

Error when installing Microsoft Sql Server 2019, cannot find the microsoft OLE DB Driver

Error given I am having trouble installing Microsoft SQL server 19 Express (I tired dev aswell, it does the same thing). It keeps giving me the error: Error Description: An installation package for the product Microsoft OLE DB Driver for SQL server…
Adi Miller
  • 681
  • 1
  • 5
  • 8
15
votes
2 answers

Writing a Windows Printer Driver

I want to write a application in C++ or C# that will behave as a printer driver when installed. It will be available in the drop down list in Print dialog but instead of printing it will call into my code. I think there may be some interfaces that…
A9S6
  • 6,575
  • 10
  • 50
  • 82
15
votes
1 answer

Docker container: lsmod not found

How can I get lsmod and modprobe installed in Ubuntu 14 that is running on Docker? I need to install a device driver in the container, but first I need these commands. (The docker image is originally from docker hub, from a tomcat:7 image).
nikk
  • 2,627
  • 5
  • 30
  • 51
15
votes
3 answers

Insert element into nested array in Mongodb

I have this : { "_id" : ObjectId("4fb4fd04b748611ca8da0d48"), "Name" : "Categories", "categories" : [{ "_id" : ObjectId("4fb4fd04b748611ca8da0d46"), "name" : "SubCategory", "sub-categories" : [{ "_id" :…
Uokimi Uokimi
  • 285
  • 1
  • 3
  • 9
15
votes
2 answers

How to add poll function to the kernel module code?

As I know, to inform the user space from kernel space, one way is to using poll. That means kernel driver should provide poll method first. Below code is found from internet, and it really works! #include #include…
Tom Xue
  • 3,169
  • 7
  • 40
  • 77
15
votes
2 answers

How to get Coordinates of Touchscreen Rawdata using Linux

We have a 3m microtouch display. It's connected to my Debian system via USB and recognized as human interface (hid). I am trying to access and push realtime information... if its getting touched I want to know where (x,y) and pipe it through netcat…
uncle_iroh
  • 193
  • 1
  • 2
  • 7
15
votes
3 answers

Need to completely remove a device driver in windows 7

I have an old USB device that is not recognized by windows 7, so I grabbed the device driver for the chip that handles the USB communications. After I modified it I used it to install for the device. Stupid I know, but now I need to get rid of it.…
B4wii
  • 189
  • 1
  • 2
  • 6
15
votes
2 answers

Emulate physical USB device Linux

I have a Linux application that I would like to automate some tests for, and its state should change depending on the status of certain devices, i.e. USB devices, WLAN devices, WAN devices. However, we no longer have physical USB, WLAN, WAN, etc…
Matt Dorsett
  • 151
  • 1
  • 1
  • 3