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
13
votes
4 answers

How use update function of mongo-go-driver using struct

The update function of mongo-go-driver can be called like this. filter := bson.D{"username", username} update := bson.D{{"$set", bson.D{ {"name", person.Name}, }, }} result, err := collection.UpdateOne(ctx, filter, update) type…
sumedhe
  • 934
  • 1
  • 13
  • 30
13
votes
2 answers

struct file in linux driver

I am currently learning how to write Linux device drivers and I have trouble understanding "struct file". I am using the book Linux Device Drivers 3rd edition to help me out. This is what I understood. a. struct file represents an open file thus,…
Mir
  • 670
  • 4
  • 9
  • 20
13
votes
1 answer

Where can I find the log created from a gpusGenerateCrashLog callstack?

In my OpenGL rendering engine I'm currently crashing 1 frame after I press a key that starts issuing some new OpenGL calls. The following is the crashed call stack, which is a CVDisplayLink thread. 0 libsystem_kernel.dylib …
James Bedford
  • 28,702
  • 8
  • 57
  • 64
13
votes
1 answer

What does the MSP in STM32CubeMX HAL_xxx_MspInit() functions stand for?

I was wondering what the abbreviation "MSP" in HAL_xxx_MspInit() callbacks stands for. I have seen that in some firmware drivers like the HAL library from ST. For example: void HAL_UART_MspInit(UART_HandleTypeDef *huart); void…
StarSheriff
  • 1,477
  • 2
  • 17
  • 23
13
votes
2 answers

Implementing poll in a Linux kernel module

I have a simple character device driver that allows you to read from a custom hardware device. It uses a DMA to copy data from the device's memory into kernel space (and then up to the user). The read call is very simple. It starts a DMA write,…
zmb
  • 7,605
  • 4
  • 40
  • 55
13
votes
2 answers

mongodb java driver 3.0: how to store JSON document

Looks basic and simple: A have a JSON string and I want to store it in MongoDB as JSON document. In java driver 2.xx I could use com.mongodb.util.JSON.parse(String jsonString) to get DBObject and then store it in collection. In driver 3.0 JSON.parse…
Seweryn Niemiec
  • 1,123
  • 2
  • 13
  • 19
13
votes
2 answers

How to read GPU (graphic card) temperature?

I am interested in a way how to read GPU temperature (graphics processing unit, main chip of graphic card), by using some video card driver API? Everyone knows that there two different chip manufacturers (popular ones, at least) - ATI and nVIDIA -…
mr.b
  • 4,932
  • 11
  • 38
  • 55
13
votes
1 answer

Modifying Windows disk driver to use updated control codes like IOCTL_DISK_GET_DRIVE_GEOMETRY_EX

I'm trying to modify a Windows kernel-level disk driver to properly respond to updated control codes. For example, it only had a handler for the obsoleted IOCTL_DISK_GET_DRIVE_GEOMETRY control code, but not the newer…
davidl
  • 139
  • 3
13
votes
7 answers

Postgresql driver not found for maven dependency

I am running a spring project with maven and I am trying to use postgresql. I've added the dependency to pom.xml, but at tomcat startup, I get the following error: java.lang.ClassNotFoundException: org.postgresql.Driver pom.xml dependency:…
Alex
  • 312
  • 1
  • 3
  • 9
13
votes
3 answers

No suitable driver found for jdbc:postgresql://192.168.1.8:5432/NexentaSearch

I wrote following the java program import java.io.*; import java.util.*; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import…
user2328488
  • 345
  • 2
  • 5
  • 9
13
votes
7 answers

How to add the JDBC mysql driver to an Eclipse project?

I have downloaded the mysql-connector-java-5.1.24-bin.jar I have created a lib folder in my project and put the jar in there. properties of project->build path->add JAR and selected the JAR above. I still get java.sql.SQLException: No suitable…
Itay Moav -Malimovka
  • 52,579
  • 61
  • 190
  • 278
13
votes
3 answers

PostgreSQL driver for Go programming language

http://go-lang.cat-v.org/pure-go-libs lists two PosgreSQL drivers, but they haven't been updated since months and looking like one man shows. So I wonder if they are reliable / ready for production or if there are other recommended drivers. Would…
deamon
  • 89,107
  • 111
  • 320
  • 448
13
votes
7 answers

how can i build a driver using visual studio?

does anyone have an article how to do this ?
Lea gold
12
votes
3 answers

linux usb connect/disconnect event

Hello I am working on an embedded linux device with a usb port that uses the g_ether driver for usb networking. When the usb plug is connected the dmesg output is: g_ether gadget: full speed config #2: RNDIS When the usb cable is unplugged no…
eat_a_lemon
  • 3,158
  • 11
  • 34
  • 50
12
votes
3 answers

libusb interface already claimed

I'm writing a device driver for a usb device using libusb. When I attempt to claim the device I get the error code LIBUSB_ERROR_BUSY (-6). According to the documentation that means that the device has already been claimed (link). How do I find out…
jairo
  • 175
  • 1
  • 2
  • 9