Questions tagged [drivers]

THIS TAG IS FOR WRITING DRIVERS. Questions about finding/using drivers can be asked on https://superuser.com Drivers allow higher-level programs to communicate with the specific hardware device and operating system that they were programmed for.

In computing, a device driver or software driver is a computer program allowing higher-level computer programs to interact with a hardware device. 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.

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.

As Microsoft states, Without drivers, the hardware you connect to your computer—for example, a video card or a webcam—will not work properly.

In most cases, drivers come with Windows or can be obtained through Windows Update; other times, the driver is found on the disc that came with the hardware or device you want to use, or is on the manufacturer's website.

People also often cite drivers as a common cause of operating system crashes. The reason a poorly written driver can crash an operating system is if it overwrites memory that is shared in the operating system's address space. This is less common in micro-kernel operating systems than [monolithic kernel] operating systems, where all OS services run along with the main kernel thread, thus also residing in the same memory area.

646 questions
86
votes
4 answers

How should I get started on writing device drivers?

I would like to learn how to write device drivers because I think it would be fun. I use a Mac OS X Macbook, but I also have an Ubuntu machine (running on a Mac Min). I am pretty familiar with C and currently am reading this book. I have found some…
Bjorn
  • 69,215
  • 39
  • 136
  • 164
84
votes
12 answers

What is the difference between FIQ and IRQ interrupt system?

I want to know the difference between FIQ and IRQ interrupt system in any microprocessor, e.g: ARM926EJ.
Renjith G
  • 6,307
  • 9
  • 27
  • 26
52
votes
12 answers

android-sdks/build-tools/17.0.0/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

I just installed eclipse, the android sdk and jdk on a fresh installation for 64 bit fedora 14 , but by the time i create a new project i am getting the following error in the console: android-sdks/build-tools/17.0.0/aapt: error while loading…
Prafull Chauhan
  • 521
  • 1
  • 4
  • 5
50
votes
25 answers

Android Studio does not recognize my Xiaomi Redmi Note 3

When I try to "run" app via Android Studios, my Xiaomi Redmi Note 3 doesnt pop up in the list. However, it does show up in my PC file explorer. Things I've done; -tried to install both Xiaomi's own usb drivers and Google's usb drivers, with the same…
Bram van Haaren
  • 501
  • 1
  • 4
  • 5
36
votes
6 answers

Unit testing device drivers

I have a situation where I need to write some unit tests for some device drivers for embedded hardware. The code is quite old and big and unfortunately doesn't have many tests. Right now, the only kind of testing that's possible is to completely…
Noufal Ibrahim
  • 71,383
  • 13
  • 135
  • 169
33
votes
3 answers

Difference between database drivers and database dialects

What is the difference between database drivers and database dialects?
user244634
  • 345
  • 1
  • 3
  • 5
33
votes
10 answers

Control USB port's power?

Does anybody know how to control USB pins on a certain USB port? I think it is definately possible in assembler but what about C++ or C#? I want to be able to use USB battery as a power supply for an LED or something like that. So then a program…
Kristina
  • 15,859
  • 29
  • 111
  • 181
32
votes
5 answers

Writing drivers in C#

I have written earlier in C/C++ but currently, I need it to convert into C#. Can anyone tell me the code/way How to write drivers in C#? Actually currently I have some problems with my old application written in C++ and we have to write the drivers…
Gaurav Arora
  • 2,243
  • 6
  • 40
  • 57
24
votes
7 answers

Why is there no DirectX API for Linux?

Upon considering the driver side implementation for DirectX API on windows systems for modern video cards I was wondering why this implementation is not available on non-windows system, most notably linux. Since there is an obvious absence of this…
Brian
  • 951
  • 2
  • 10
  • 20
24
votes
2 answers

In Windows 8, will third-party INF driver files require a signature?

I work for a company that sells USB devices and provides drivers for them. In Windows 7, you could install and use unsigned INF driver files for USB devices as long as they didn't add any code to the kernel. Our company uses generic drivers provided…
David Grayson
  • 84,103
  • 24
  • 152
  • 189
23
votes
10 answers

USB programming

I want to program a microcontroller (AVR) to control some leds through USB. It's just out of interest in how to build and program USB devices. There are some AVR microcontrollers that support the USB protocol or I could implement the USB protocol in…
EDWH
  • 491
  • 2
  • 5
  • 11
22
votes
1 answer

What is the jdbc driver "org.gjt.mm.mysql.Driver" for?

After taking over a coworker's project I noticed he was using "org.gjt.mm.mysql.Driver" as the jdbc driver for MySQL 5 instead of the more common one "com.mysql.jdbc.Driver". They both are contained in the driver I found on Maven central that…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
21
votes
4 answers

Creating a Virtual USB Device

I am a newbie learning how to write WDM device drivers for USB devices and found that the materials available are all too hard to comprehend (the DDK online doc is one of the most difficult to read, and the WDM Device driver book by Oney isn't…
JavaMan
  • 4,954
  • 4
  • 41
  • 69
20
votes
2 answers

NVidia drivers not running on AWS after restarting the AMI

everybody, I have the following problem: I started a P2 instance with this AMI. I installed some tools like screen, torch, etc. Then I successfully run some experiments using GPU and I created an image of the instance, so that I can terminate it and…
Peter Hroššo
  • 326
  • 2
  • 7
19
votes
2 answers

What is the difference between UART port and serial port in a computer?

What is the difference, if any, between a UART port and a serial port in a computer?
Renjith G
  • 6,307
  • 9
  • 27
  • 26
1
2 3
43 44