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

Is it possible to use EFI to create fully cross-platform disk driver?

I need to create a driver, which will behave similar to software RAID. E.g. driver will need to communicate to multiple physical disks (or maybe even network resources), and shall look like a disk to the OS. So two main questions are: 1) Are EFI…
LOST
  • 2,956
  • 3
  • 25
  • 40
2
votes
1 answer

Nonpaged memory pointer

I have 2 structures declared: struct irp_list { IRP *irp; LIST_ENTRY lh; }; and struct dev_info { ... LIST_ENTRY lh; ... }; Inside DriverWrite function (IRP_MJ_WRITE) I do: struct irp_list *il; struct dev_info *di = (struct…
johnye2e
  • 111
  • 9
2
votes
2 answers

Implementing kernel bypass for a network card

My situation: I would like the data received on a network card to reach my application as fast as possible. I have concluded that the best (as in lowest latency) solution is to implement a network stack in my user space. The network traffic can be a…
user997112
  • 29,025
  • 43
  • 182
  • 361
2
votes
2 answers

Why NdisFRegisterFilterDriver failed with NDIS_STATUS_FAILURE under Windows 8?

everyone. I am developing a NDIS 6 filter driver (LWF). the NdisFRegisterFilterDriver call in the DriverEntry routine failed with NDIS_STATUS_FAILURE. This only happens to Win8 x86, the driver can normally run under Win7 x86. It is so strange. I…
hsluoyz
  • 2,739
  • 5
  • 35
  • 59
2
votes
3 answers

Can not find linux/modversions.h

I am trying to install the driver for a serial device, and when I run the installation executable I get this error: cc -DLINUX -c -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -m64 -mcmodel=kernel…
Ann
  • 693
  • 3
  • 12
  • 17
2
votes
2 answers

Is it possible to capture localhost packets (127.0.0.1 as destination) in NDIS layer?

I am developing an NDIS 6 filter driver of Win7 and Win8 for WinPcap and Nmap. As you know, Nmap is a network scanner. A requirement of Nmap is to capture localhost packets like "ping 127.0.0.1", so that Nmap can test the local machine itself, too.…
hsluoyz
  • 2,739
  • 5
  • 35
  • 59
2
votes
3 answers

pyodbc connection to DB2

I am currently trying to connect DB2 from a python program using pyodbc. As the driver was not already installed in the server I downloaded it from the IBM website, but I'm not sure how to connect using pyodbc . The code which I am using is : cnx =…
LonelySoul
  • 1,212
  • 5
  • 18
  • 45
2
votes
1 answer

VirtualBox - How to write Drivers/Plugins?

I want to write my own virtual network card driver/plugin that can be configured for virtual machines within VirtualBox to intercept the incomming and outgoing packets. I found the documentation of VirtualBox's SDK at…
Marc-Christian Schulze
  • 3,154
  • 3
  • 35
  • 45
2
votes
1 answer

I'm currently creating my first Windows Device Driver "Hello world." activity. I'm using Microsoft Visual Studio 2012.

How do I generate a .sys file so that I can load it in the OSRloader?
John
  • 55
  • 1
  • 4
2
votes
5 answers

Windows Named Pipe Problem

I'm writing a driver that communicates with a userland application through a named pipe. The userland application creates the named pipe by calling CreateNamedPipe() and then passes the pipe name to the driver by invoking an IOCTL. The driver then…
anon
  • 591
  • 2
  • 6
  • 11
2
votes
4 answers

Windows Driver - How do I determine if Windows is in the process of booting, or has already booted?

I'm trying to develop a dual purpose driver that performs certain tasks at boot time, and other unrelated tasks after Windows has already started. It's developed as a boot start driver. I understand that the proper way to do this may be to develop 2…
Randall Deetz
  • 512
  • 4
  • 25
2
votes
1 answer

how to call NdisOpenAdapterEx or the alternative outside the ProtocolBindAdapter routine?

I am porting the famous packet capture software -- WinPcap from NDIS 5.0 to NDIS 6.x. I tried to translate every NDIS 5.0 function to its 6.0 version. In WinPcap sourcecode function NdisOpenAdapter is called by NPF_OpenAdapter in Openclos.c. I…
hsluoyz
  • 2,739
  • 5
  • 35
  • 59
2
votes
1 answer

How to reset system in wireless driver?

Can I use emergency_restart() ? or If I use kill(1, SIGTERM); I need to include "signal.h", but it seems not work in wireless driver embedded linux system device: wireless AP code section: wireless driver
2
votes
0 answers

The interaction between system call, virtual file system, block subsystem and block device drivers

I know how some system calls like sys_read and sys_write work with character device files. If I understand correctly, because character device drivers implement file_operations functions so sys_read and sys_write will call the read and write…
2
votes
2 answers

Adding a driver to an Android tablet

I'm creating a camera driver for Android. I've got my mydriver.c file. Apparently I need to compile it into a .ko, is that right ? And then to load it I should do a #insmod ./mymodule.ko, will it work ? Do I need to be root ? And how I put the .ko…
Armand
  • 726
  • 11
  • 29
1 2 3
99
100