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
22
votes
5 answers

Getting Started on Driver Development

Does anyone have any books/tutorials which may be useful in getting started in Windows device driver development? For plain Win32/GUI development, Petzold's book seems to be the essential reference. Does such exist for drivers? I would like to note…
Billy ONeal
  • 104,103
  • 58
  • 317
  • 552
22
votes
3 answers

How can I bind a driver with a USB device?

I am writing a USB device drive for linux. it's for a joystick. every time plug it in, linux loads a hid driver. is there a way to tell Linux to load mine when I plug it in? or at least not load the default one? I can echo the id in unbind of the…
pvinis
  • 4,059
  • 5
  • 39
  • 59
22
votes
3 answers

Installing a driver (.inf) file from command line

I am working in Windows 8.1. I need to install a driver file (.inf file) from command line. Which command do I need to use? I know I have many other method for installing a .inf file, but I must install this from command line. Please help me Thanks…
yemans
  • 917
  • 3
  • 12
  • 17
22
votes
4 answers

Signed INF driver works on the computer where it was signed, not others

My company purchased a Driver Signing Certificate from Go Daddy. I used it to sign a simple INF file that is a driver for some of our USB devices that use Microsoft's usbser.sys. Everything seems to work on the Windows 7 64-bit computer where I…
David Grayson
  • 84,103
  • 24
  • 152
  • 189
21
votes
1 answer

descriptor concept in NIC

I am trying to understand the concept of Rx and Tx descriptors used in Network driver code. Are Descriptors in software(RAM) or hardware (NIC card). How do they get filled. EDIT: So in a Realtek card driver code. I have a following struct…
Haswell
  • 1,573
  • 1
  • 18
  • 45
21
votes
1 answer

OLEDB v/s ODBC

What is the difference between OLEDB and ODBC? When do I use which and how do I know what I am looking at is a OLEDB driver v/s an ODBC driver?
Joseph
  • 2,155
  • 6
  • 20
  • 32
20
votes
3 answers

Cannot load `swrast` and `iris` drivers in Fedora 35

Essentially, trying to write the following code results in the error below: Code from matplotlib import pyplot as plt plt.plot([1,2,3,2,1]) plt.show() Error libGL error: MESA-LOADER: failed to open iris:…
Mahyar Mirrashed
  • 471
  • 1
  • 3
  • 14
20
votes
2 answers

How do I deploy a .inf based driver?

I would like to deploy a .inf based USB driver with my installer. I guess the .inf needs to be placed in %SystemRoot%\inf, but there is also a .cat (WHQL certification I guess?), and .sys files. What do I do with those? EDIT: Resolved, thanks to…
Nick
  • 13,238
  • 17
  • 64
  • 100
20
votes
2 answers

How to use a JDBC driver from an arbitrary location

I need to test a JDBC connection to a database. The java code to do that should be as simple as: DriverManager.getConnection("jdbc connection URL", "username", "password"); The driver manager will lookup the appropriate the driver for the given…
SaM
  • 2,410
  • 1
  • 19
  • 19
20
votes
2 answers

Raw PDO to send IOCTL to upper filter driver (kbfiltr/moufiltr) to enable/disable device

I am quite new to driver development and trying to write a simple filter driver that will enable or disable a keyboard or mouse device. If I can make it work, I want to use it to disable the touchpad on my laptop when a mouse is plugged in. I…
Dale
  • 12,884
  • 8
  • 53
  • 83
20
votes
8 answers

How to write device drivers in Javascript?

Is it possible to write hardware drivers in Javascript? What would be the steps required for such a task? Also, I was unsure where to post this, so any suggestions regarding this are also welcome. I hope this is the accurate location for the…
Leila Hamon
  • 2,505
  • 7
  • 24
  • 32
20
votes
6 answers

How to create a virtual printer in Windows?

I want to create a virtual printer driver for Windows. How and where can I start properly? The WDK has some printing drivers examples that do not seems a good introductory. MSDN also doesn't seems to be very helpful for a novice. There are a lot of…
Terminus
  • 902
  • 2
  • 10
  • 21
19
votes
4 answers

I2C_SLAVE ioctl purpose

I am writing code for implementing a simple i2c read/write function using the general linux i2c driver linux/i2c-dev.h I am confused about the ioctl : I2C_SLAVE The kernel documentation states as follows : You can do plain i2c transactions by using…
zacurry
  • 876
  • 3
  • 12
  • 25
19
votes
2 answers

Storage & Network device drivers source code for Nexus 6 and Samsung Galaxy S6

For university research purposes, I am searching for a specific part of Nexus 6, and Samsung Galaxy S6 source code. Particularly, I am interested in "network" & "storage" driver source codes. I have visited developer resources for both Samsung…
Behnam
  • 6,510
  • 6
  • 35
  • 65
19
votes
4 answers

Can I write Windows drivers with Delphi 2010?

I've always heard that Delphi can do almost anything C++ can do...except write Windows drivers. Is this correct, and if so, why is that? I recently read a blog post online that may indicate a possible solution for writing drivers with Delphi, but…
Mick
  • 13,248
  • 9
  • 69
  • 119