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
15
votes
2 answers

How do I use WiX to deploy an INF-based USB driver

This question could be considered a duplicate of: How do I deploy a .inf based driver? Except that I want to do that entirely in the installer, not with a separate program. There's supposed to be an example downloadable…
mmr
  • 14,781
  • 29
  • 95
  • 145
15
votes
3 answers

Schema Spy unable to find postgresql driver

I want to use Schema Spy to generate schema diagrams, I have specifed the following command java -jar schemaSpy_5.0.0.jar -t pgsql -host 10.100.71.21[:5432] -db mydb -s public -u username -p password -dp postgresql-8.0-312.jdbc3.jar -o output/ I…
Pankaj Bhambhani
  • 659
  • 3
  • 12
  • 20
14
votes
3 answers

When does the probe function for a Linux kernel driver gets called?

I am trying to update a kernel driver for Android, I have added some printk's to debug it, the _init function is invoked, but the probe function is not. What I am missing ? When/how is the probe function invoked ? The code is available at:…
João Pinto
  • 5,521
  • 5
  • 21
  • 35
14
votes
3 answers

How can I install a driver using Inno Setup?

I'd like to install a driver for a serial port using Inno Setup. I have the inf file, and I can install the driver manually through device manager, but I'd like to be able to include the driver in my installer so that users don't have to go through…
nathan
  • 4,612
  • 6
  • 32
  • 33
14
votes
1 answer

I want to create a minifilter driver to transparently redirect disk i/o, but I'm having trouble getting started

A project I'm working on at the moment requires the implementation of a copy-on-w/m mechanism which will be used to redirect disk i/o in a similar manner to Deep Freeze or Sandboxie, on Windows XP. If I could I'd also like to be able to "mount" the…
Adam James
  • 356
  • 3
  • 10
14
votes
1 answer

Why is it "Bad" to Build Drivers with Visual Studio?

Microsoft Visual Studio's linker has a /DRIVER flag specifically for building drivers: Use the /DRIVER linker option to build a Windows NT kernel mode driver. However, Microsoft says: You must not build drivers by using the compiler or linker…
user541686
  • 205,094
  • 128
  • 528
  • 886
14
votes
2 answers

Windows7 boot option to allow unsigned drivers ignored

I'm learning Windows kernel mode driver development. I've written a small test driver that I can successfully register, unregister, load and unload under Windows 7 32bit Ultima edition running under a VM in VirtualBox. My host is Windows 7 64bit…
Eric
  • 1,697
  • 5
  • 29
  • 39
14
votes
3 answers

Developing an HID input device driver for a BLE GATT device on Windows 10

(This is a crosspost from the MSDN forums since there hasn't been any response there for quite some time and I thought I would get better answers here.) I have a BLE device containing a custom GATT service, of which I cannot modify the firmware. I…
hansmbakker
  • 1,108
  • 14
  • 29
14
votes
3 answers

MongoError: not master

I am trying to connect node.js app to MongoDB having replica set but it's throwing an error when any write operations are performed. It throws MongoError: not master. It tries to write on secondary mongo instances. I have the options as { db: {…
Nikhil
  • 591
  • 2
  • 5
  • 11
14
votes
12 answers

No suitable driver found for Oracle Database connection

I have small Java Application, which execute every day and checks for data in database using Cronj Schedular and everything works fine, but recently I have observed that, it is failing due to java.sql.SQLException: No suitable driver found for…
Ravi
  • 30,829
  • 42
  • 119
  • 173
14
votes
3 answers

dma vs interrupt-driven i/o

I'm a little unclear on differences between DMA and interrupt I/O. (Currently reading Operating Systems Concepts, 7th ed). Specifically, I'm not sure when the interrupts occur in either case, and at what points in both cases is the CPU is free to…
Joney
  • 309
  • 1
  • 2
  • 8
14
votes
3 answers

How to set errno in Linux device driver?

I am designing a Linux character device driver. I want to set errno when error occurs in ioctl() system call. long my_own_ioctl(struct file *file, unsigned int req, unsigned long arg) { long ret = 0; BOOL isErr = FALSE; // some…
Andrew Chang
  • 1,289
  • 1
  • 18
  • 38
14
votes
1 answer

Open device name using CreateFile

I am working on a simple device driver I want to comunicate with the driver from user-mode using IRP. I am having trouble opening the device driver. Using DeviceTree I am able to see the device name eg \Device\MyDevice. But when I try to open it…
opc0de
  • 11,557
  • 14
  • 94
  • 187
14
votes
4 answers

How did this unsigned driver get installed on Windows 7 64 bit?

While developing our 64bit driver, we came to understand that every driver needs to be correctly digitally signed to install (except in Test Mode). Recently, we stumbled over a driver (for an USB camera), that seems to be missing a valid signature.…
Jens
  • 25,229
  • 9
  • 75
  • 117
13
votes
1 answer

Installing 32 & 64 bit drivers with Wix?

I have a Wix project from which I would like to install 32-bit drivers when built with the x86 release configuration and 64-bit drivers when built with x64. The way I am doing this just now is with two identical projects but one referencing…
Alan Spark
  • 8,152
  • 8
  • 56
  • 91