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.
driver
6,621 questions
Advice
0
votes
2
replies
40
views
Windows Kernel Driver Persistent Flag Creation
Greetings all you Win32 kernel devs,
I would like to receive some recommendations as to how my driver can simply keep a "flag" that I can set/retrieve persistent after my driver is unloaded. ...
0
votes
1
answer
99
views
'_ReadWriteBarrier' : cannot be found in "wdm.h" [closed]
I'm taking my first steps in kernel driver dev.
So to make the install I followed the process given here: https://learn.microsoft.com/fr-fr/windows-hardware/drivers/download-the-wdk .
However when ...
Best practices
1
vote
1
replies
55
views
Test a kernel driver in QEMU
How should I test a Linux kernel driver, without a real device. It is not a device that QEMU supports(in my case, it's drivers/tty/serial/digicolor-usart.c).
Gemini told me I can modify the source ...
1
vote
0
answers
77
views
Virtual v4 Print driver .inf file configuration
Using Visual Studio 2022's Print Driver v4 template, I'm attempting to write a virtual print driver. Its only job is to pass the XPS document to a background service for further processing. It has no ...
Best practices
0
votes
0
replies
27
views
Best practices for power management of drivers in zephyr/RTOS driver
Whats the best way to manage power up when you have complicated power requirements.
Ex
shared power supplies
IC's with complicated bring up sequences
multiple devices of the same type
In zephyr ...
1
vote
1
answer
70
views
UAC 2.0 Microphone USB Configuration Descriptor
I am really trying to understand the ADC2.0 spec to create a really simple USB UAC2.0 8 bit microphone. My device enumerates fine, but the driver doesn't like it (it says it cannot start).
Q1. How do ...
3
votes
1
answer
175
views
Windows USB Driver refuses to accept my manufacturer string
I am homebuilding a USB driver on STM32. I have managed to get the device to enumerate which is awesome, but only when I disable all the strings (set all ID's to 0). Right now, when I set ...
0
votes
0
answers
64
views
NDIS LWF-FilterReceiveNetBufferLists PerCPU?
I’m new to developing NDIS Light-weight Filter (LWF) drivers. My goal is to intercept UDP packets for a specific IP+port and copy the payload into a user-mode application buffer that was registered ...
0
votes
0
answers
133
views
Fully release VFIO resources in DPDK
I am writing a C program that periodically loads/unloads a dynamic library. The dynamic library performs network operations using DPDK, and in my setup, it relies on the VFIO framework.
This is a ...
3
votes
1
answer
100
views
Why does SET_INTERFACE on my Logitech QuickCam via libusb give a "LIBUSB_ERROR_PIPE", but the official program can do the same thing without issue?
As a project to learn libusb, I am writing a driver for my old Logitech QuickCam Chat from 2006. To clarify, the camera quality is awful and I have no intention of using this for anything other than ...
0
votes
0
answers
70
views
USB Driver [usb_bulk_msg]
When I was writing a USB driver, I used the usb_bulk_msg function to send data. When I used an array created with stack space, I could only send data under 8 bytes. If I sent more than 8 bytes, the ...
0
votes
0
answers
50
views
Can i modifiy the priority when loading more than one linux module?
I'm doing a Linux kernel module which every time a keyboard is plugged in it prints a message like "Keyboard connected!"
...
1
vote
0
answers
62
views
Kernel module fails to compile with 'undefined symbol: fib_get_table' despite function being present
I'm writing a Linux kernel module that prints the routing tables using dmesg. To do this, I'm trying to use the fib_get_table ...
0
votes
1
answer
32
views
infverif.exe error 1273 uses disk id 1, which is not listed under [SourceDisksNames]
While I was trying to install a custom made driver using a self-written .inf file, I decided to use the Microsoft infverif ...
1
vote
0
answers
150
views
How to control the mouse and keyboard on the Windows lock screen?
I am developing a remote desktop application, and when the Windows screen is locked (WIN+L), the user mode API (SendInput) fails, ...
2
votes
1
answer
172
views
Are I²C child nodes instantiated as platform devices during of_platform_populate()?
I'm trying to understand how platform_devicesare instantiated from the Device Tree during early kernel boot.
I noticed that the function ...
2
votes
0
answers
120
views
Mouse Cursor in 16-bit Assembly (NASM) Overwrites Screen Content in VGA Mode 0x12
I'm developing a PS/2 mouse driver in 16-bit assembly (NASM) for a custom operating system running in VGA mode 0x12 (640x480, 16 colors). The driver initializes the mouse, handles mouse events, and ...
0
votes
1
answer
177
views
Upgrading ignite from 2.15 to 2.17 and Java 11 to Java 17
I am upgrading My java version from 11 to 17 and Ignite version 2.15 to 2.17. I am using multitenant connection with postgresql database.
But, while I start my service with the upgraded versions, I am ...
0
votes
0
answers
106
views
My SDIO connected WLAN Chip (RTL8822CS) is not recongized
On my Buildroot Linux for Rockchip 3328 (NanoPi R2S Plus) I try to activate the WLAN chip Realtek RTL8822CS connected via SDIO.
The Hardware works when using another Distro.But when compiling on my ...
6
votes
2
answers
346
views
UWP - Print Support App - virtual printer not showing up
I want to create a UWP Printer application to set up a virtual printer that I then can select from windows print dialog following the Print Support App design guide as good as I can.
I expect that at ...
0
votes
0
answers
69
views
How to handle eapol frame in windows WiFi driver (developed by WDI)?
I use NDIS_WDI_RX_INORDER_DATA_IND_HANDLER and MINIPORT_WDI_RX_GET_MPDUS to indicate NBL to WDI, the format is MacHeader(24B)+LLC(8B)+Payload.
When I connect to an open AP, my driver works normally, I ...
1
vote
0
answers
146
views
mSGDMA interaction via linux-socfpga on Agilex 5
I am trying to use this DMA driver to transfer memory from a streaming device to SDRAM.
This is my design in Qsys/Platform designer:
The design streams a predictable pattern of ...
0
votes
1
answer
87
views
qsqlmysql loaded library but QMYSQL driver not loaded
I can't connect to my SQL database using QSqlDatabase.
My system is:
Windows 11
Qt 6.9.0
llvm-mingw1706_64
MySql 8.0.41 running on a CentOs virtual machine.
I extract libmysql.dll, libmysql.lib and ...
1
vote
1
answer
93
views
Linux PCI pcibios_window_alignment() not working as intended after kernel upgrade
Currently I've been working and stuck on the job of upgrading Linux Kernel from 4.19 to 5.15.
There's source code that in kernel/arch/.../our_pci.c, my former ...
0
votes
0
answers
276
views
How to completely wipe installation of VS 2022 and re-install it from scratch? Missing ntddk.h error for a kernel driver
I've spent close to 2 days trying to resolve this pesky error.
I have a VS 2022 project for a kernel driver, written with KMDF. I developed it using VS 2022. I wanted to transfer it to another PC ...
2
votes
1
answer
476
views
Chromium web extension with NoDriver
I downloaded Chromium version 136 and I'm using it on macOS 64 ARM. I opened it manually and added a Chrome web extension and it works. When I close Chrome, quit, and open it the extension is always ...
1
vote
0
answers
52
views
When to use DMB before invalidating cache
I am trying to understand the invalidating DMA buffers example from page D7-2450 in the Architecture Reference Manual ARMv7-A and ARMv7-R edition.
What is the memory barrier before the second ...
0
votes
0
answers
35
views
Character driver device nodes not listing in Android
Three devices created using a character driver (/dev/device1, /dev/device2 and /dev/device3) is not listing in Android(AOSP 15). The same character driver works fine under Linux (via udev).
It is ...
0
votes
0
answers
41
views
Windows Keyboard Filter Driver Crashes on Keypress (No Sign of DriverEntry Being Called)
I'm writing a basic keyboard filter driver using WDM. I load the .sys using sc create and sc start, and attach it to \Device\KeyboardClass0. The driver seems to load, but as soon as I press any key, ...
0
votes
0
answers
105
views
How to set INF settings so that USB audio device is not shown as Recording device?
I am trying to write an INF file for a usb audio 2.0 device and so far I managed to test and install my INF file on a Test Mode PC, however the device shows up as both a Playback and Recording device ...
0
votes
0
answers
44
views
Can a kernel mode and user mode object file be linked together and run?
I have a Windows kernel mode driver (compiled with MSVC + /kernel). I am writing the test suite for it and have come across an snag:
The testing suite is obvious ...
0
votes
0
answers
73
views
Callbacks does not register in minifilter-driver
I had problem with driver. Callback func BeforeIO doesn't call in any case. Here is the code of nullfilter (minifilter-driver). However driver is working and DebugView shows that config was read. ...
1
vote
0
answers
129
views
Why MMIO memory space of 𝚖𝚌𝚙𝟼𝟷 Ethernet controller Nvidia are all set?
I am trying to write a driver for Nvidia.
At a certain address I have read it is the correct return value, though unfortunately the MAC address is correct only once, otherwise all values are set to, ...
0
votes
0
answers
71
views
Trying to unlock all the Apple Airpods exclusive features on Windows - Error 52 (Digital Signature Not Verified) with custom drivers on Windows 11
I am trying to install custom drivers for enhanced AirPods 4 ANC / Pro 2 / max functionality on Windows 11. These drivers are incredibly useful to unlock all Airpods feature on Windows, but I keep ...
1
vote
1
answer
161
views
Zero values for stack base and stack limit addresses in NT_TIB struct (Kernel Mode Windows)
When running the !pcr command in Windbg, the NT_TIB structure shows zeros for StackBase and <...
1
vote
1
answer
45
views
How do I debug a WIndows NDIS driver?
I am having trouble figuring out how to debug a Windows NDIS driver. I can't find a way to look at logs or traces from NDIS.
I have tried a kernel debug session with WinDbg on the host and target in a ...
1
vote
1
answer
64
views
Mongo linq query ignores custom serialization of linq argument using linq provider v3
Issue
We have a custom serializer for an enum (MeasurementValueType), which stores the enum as a string in MongoDB and deserializes it from a string back into the enum when querying.
The enum ...
0
votes
0
answers
101
views
Mapping buffer from kernel space to user space in windows
I'm currently working with windows kernel driver that allocate memory which should be shared with a program.
Afaik an application can ask the driver to create a memory buffer of max 4G size for ...
0
votes
0
answers
57
views
SIM8200EA-M2 5G Module Not Recognized on Windows 11 Despite Driver Installation
I can communicate with the 5G module from a Raspberry Pi running the latest Raspberry Pi OS via the serial interface without any issues. However, when I attempted the same on my Windows 11 laptop, I ...
1
vote
1
answer
64
views
winbond W25Q02JV problem: can't use whole memory capacity of nor flashi n linux
I use winbond W25Q02JV nor flash with Xilinx Zynq7000 SoC. This W25Q02JV has four dies (memoy banks) of 64Mb on chip - totally 256MB.
I split the flash memory into mtd partitions:
mtd0 for uboot ...
0
votes
1
answer
35
views
Traditional NI-DAQ not compatible with OS
I am writing a program where one of the features is controlling the DaqPad 6508 using python 3.8. According to the documentation, I have to use the traditional NI-DAQ package. However, my computer is ...
1
vote
2
answers
225
views
Using Mesa DLL for Golang Fyne
I have Go code that opens a Fyne window. I run this on my MacBook and it works. I am trying to get it to run on a KVM Windows server. This issue isn't related to this specific KVM server as I've tried ...
3
votes
1
answer
69
views
Does devm_drm_dev_alloc() treat the drm_device as a managed resource of the parent device?
When using a devm_* function, I'm aware that it allocates and manages memory for the resource of a device. I imagine ...
0
votes
0
answers
100
views
AD7124-8 with STM32 Status Register not reflecting active channels
I am creating a project with an AD7124-8 PMDZ eval board with an STM32H755ZI nucleo board.
Communicating through :
SPI Mode - 3 ( CPOL - 1, CPHA - 1 ),
MSB first,
8 bit data length,
No CRC.
I have ...
0
votes
0
answers
243
views
Solareflare Onload driver
We have the following driver installed which is I guess OS (RedHat) provided if I am not wrong.
$ ethtool -i interface
driver: sfc
version: 4.18.0-553.6.1.el8.x86_64
And these are the solareflare nics:...
1
vote
0
answers
135
views
Custom Herd/Valet Drivers for Resolving URL Paths in Vanilla PHP Projects
I encountered an issue where paths couldn't be resolved properly in my vanilla PHP projects using Laravel Herd. The system would only recognize index.php files. For ...
1
vote
0
answers
91
views
Detect EPROCESS and PsLoadedModuleList tamper from kernel
Is it possible to detect if stuff like the EPROCESS struct and PsLoadedModuleList has been tampered with from Kernel?
I guess what I'm looking for is a "PatchGuard" like solution do detect ...
0
votes
0
answers
28
views
A3I Scanner Drivers Missing DLL, Dependency Walker is looking for Kernel32.dll, isTNT?
I have a relative, who is wanting to use his scanner again for records. It's a PlusTek OpticPro A3I scanner. I've searched a lot for drivers and foud sites that purport to have drivers, but once I ...
1
vote
0
answers
70
views
Keyboard Driver Not Switching to Scancode Set 2 (custom OS)
I'm developing an OS and encountering an issue with my PS/2 keyboard driver: despite attempting to set the keyboard to scancode set 2, it continues to send scancode set 1 codes.
Below is the function ...