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
12
votes
1 answer

How to optionally pass a IClientSessionHandle using the C# MongoDB Driver?

I use the repository pattern. My repository methods receive an optional IClientSessionHandle parameter which defaults to null. A part of each method prepares the filters/updates/etc., then a call is made. Since the session is optional, I have…
David Gourde
  • 3,709
  • 2
  • 31
  • 65
12
votes
2 answers

Using Sqlite JDBC Driver in a Gradle Java Project

In this tutorial, http://www.sqlitetutorial.net/sqlite-java/sqlite-jdbc-driver/, about using sqlite with java, it starts by downloading the JDBC driver from the following website, https://bitbucket.org/xerial/sqlite-jdbc/downloads/. After that it…
Trajan
  • 1,380
  • 6
  • 20
  • 41
12
votes
3 answers

codeigniter - best practice library with many classes

I'm building a library for our CodeIgniter app, but it requires many classes (currently I'm at 12). Is there a best practice for packaging these many clients into one library. So I can just make one call to load it.…
markymark
  • 629
  • 4
  • 7
12
votes
5 answers

CP2102 device is not listed in /dev on macOS 10.13

I have the ESP32 board with Silicon Labs CP2102 controller. When I connect it to my MacBook, I can get the details about this device using the command system_profiler SPUSBDataType, but it is not listed in /dev as a virtual serial port - so I can't…
Dominik Palo
  • 2,873
  • 4
  • 29
  • 52
12
votes
4 answers

ClassNotFoundException - com.microsoft.jdbc.sqlserver.SQLServerDriver

I have a web development project using local install of Tomcat 7. I am trying to connect to SQL Server 2012 using Microsoft's driver for jdbc (sqljdbc41.jar). The sqljdbc41.jar is in my application build path: and I am exporting it. Furthermore,…
Roy Hinkley
  • 10,111
  • 21
  • 80
  • 120
12
votes
4 answers

How to create own XP printer driver

How would I create my own XP printer driver which will do the following: print to file (probably XPS format) put this file into a password protected ZIP file email the zip file to a configured email address
CJ7
  • 22,579
  • 65
  • 193
  • 321
12
votes
1 answer

Where to install device drivers to make docker recognize the device?

I have some binaries running on ubuntu that control various devices like onboard/usb wifi/bluetooth chips. Some chips will require additional drivers. My guess is that merely installing the drivers to the docker image is not enough, and the host OS…
Yey
  • 554
  • 3
  • 15
12
votes
1 answer

difference between pci_alloc_consistent and dma_alloc_coherent

I am working on pcie based network driver. Different examples use one of pci_alloc_consistent or dma_alloc_coherent to get memory for transmission and reception descriptors. Which one is better if any and what is the difference between the two?
bdubey
  • 307
  • 4
  • 13
12
votes
12 answers

How do I program a driver for a USB device for windows platform?

I am looking for a device that reads wiring voltages via a USB interface and returns the data. How would I go about programming something to interpret this data and what language would I use? edit: If it helps, this project is to develop a digital…
atomicharri
  • 2,445
  • 5
  • 22
  • 23
12
votes
1 answer

BUG: unable to handle kernel paging request at

I am writing a PCI driver for a simple test device. Hardware is recognized correctly with lspci (as you can see my driver vabs has been registered): 04:02.0 Non-VGA unclassified device: Device bace:55aa Control: I/O+ Mem+ BusMaster+ SpecCycle-…
kohpe
  • 315
  • 2
  • 4
  • 9
12
votes
1 answer

How to read a sector using a bio request in Linux kernel

How do I create my own bio request to read a sector from the disk drive ? I am trying the following but it freezes the system. static void read_bio() { struct bio *b; struct page *p; b = bio_alloc(GFP_KERNEL, 1); if (!b) { …
p s
  • 339
  • 3
  • 6
12
votes
1 answer

Writing an OS X kernel extension to implement Linux's SO_BINDTODEVICE socket option

I want to be able to force a socket through a specific network interface. In Linux the kernel allows a programmer to achieve this by setting said socket option - but in OS X I'm in the dark. And hence my title question - is it possible? Has it been…
Dor
  • 902
  • 4
  • 24
12
votes
2 answers

endlessly looping when reading from character device

For a homework assignment, I have written a character device driver. It seems to work OK. I can read and write it. The problem is that when I read the device, it endlessly loops, printing out the contents of the message buffer over and over. This…
skothar
  • 123
  • 1
  • 5
12
votes
4 answers

how to setup JDBC in Eclipse?

I have eclipse and j developer,I am more comfortable with eclipse.I want to know how to setup the JDBC driver in eclipse,I downloaded a driver from oracle.com but it does not appear anywhere when I browse after clicking 'external jars' in 'java…
LoveMeow
  • 3,858
  • 9
  • 44
  • 66
12
votes
4 answers

Mac driver development

I am thinking about migrating a Windows driver into OS X. Now I am just starting to look around to see what is available and there is a lot about objective C and cocoa. Seems that the language and the cocoa framework are high level APIs, am I right…
No hay Problema
  • 853
  • 1
  • 10
  • 14