All Questions
169 questions
1
vote
1
answer
80
views
How does Windows enumerate devices? More specifically such as video device from PCIe Card
Windows will enumerate video devices, so application can see list of devices.
I wonder how windows do that in details, so I can handle order of devices.
I expect that order of devices in the list ...
0
votes
1
answer
304
views
reset virtio driver from device side
According virtio specification v1.2 there is a DEVICE_NEEDS_RESET flag in device status register is available.
If i set this flag with interrupt in virtio_pci_common_cfg.mxix_config (or 1-bit of ISR) ...
1
vote
0
answers
106
views
What is the purpose of hiding a device in Device Manager (Windows)
During driver development for Windows, the devnode status bit DN_NO_SHOW_IN_DM can be used to hide the device in Device Manager and some device setup classes are also hidden.
What is the purpose of ...
0
votes
0
answers
51
views
Windows DDK 4.0 not building some obj files
The sources in the source file are lance.c send.c request.c alloc.c Pcntn3.rc
Builds only: send.obj request.obj alloc.obj Pcntn3.res
error LNK1181: cannot open input file "obj\i386\...
0
votes
0
answers
699
views
Access to PCIe endpoint BAR through windows OS
I am studying the feasibility to communicate from a windows host with an endpoint device connected through a PCI express peripheral. Unfortunately my knowledge about PCI express is very low, so sorry ...
-2
votes
1
answer
1k
views
USB Keyboard Emulation
I want to create a USB device which can register itself as an HID (keyboard and mouse) and emulate input. I feel like I know enough about how interrupts, the kernel and its drivers work. But I don't ...
0
votes
2
answers
659
views
error: too few arguments to function ‘blk_get_request’
In Block Device Drivers coding, I am trying to implement Disk on file code, I am getting error:
In function ‘mydisk_request’:
/home/lab/DD/main.c:223:20: error: too few arguments to function ‘...
1
vote
1
answer
346
views
network device No buffer Space
Hello i created Network driver that uses the uart port to send and recive.
My driver works with some issues. I was able to ping but always afther a few pings i get
ping: sendmsg: No buffer space ...
1
vote
1
answer
155
views
why the system hang when I write characters to my dummy character device?
I am learning how to write Linux Device Driver.
I wrote a dummy character device driver, implemented open, release, write, read in fops;
When I read from device , everything was ok;
When I wrote to ...
0
votes
0
answers
65
views
Copy SKB to USART DMA
Hello i am writing a network device driver. I already setup the USART.
i registrated the Network device in the Probe funktion like this:
my_net = alloc_etherdev(sizeof(struct stm32_port));
if (...
0
votes
1
answer
266
views
Detect a new usb cable / Device after it installs the driver
I am trying to detect different types of USB cables inserted. It is possible to capture the event of the device inserted. However, if the device is new, it first installs the device driver, and it ...
0
votes
1
answer
378
views
What needs to be done to write interrupt handler on linux without actual hardware?
Is there any Hardware emulator which can generate hardware interrupt on Linux. I am looking to write device drivers that could process hardware interrupts, read or write into hardware memory, deferred ...
2
votes
2
answers
1k
views
Write long to linux char device driver?
I'm trying to write a character device driver in linux. Unfortunately it's not working for any numbers greater than 255.
I want this driver specifically to work with value of type long. Anytime I ...
0
votes
0
answers
37
views
How do you disconnect a Bluetooth device in a Windows driver so that Windows doesn't lose it's pairing?
I'm currently working on a Windows driver for Nintendo Wii remotes and I want the PC to be able to disconnect the device without removing it's pairing. I know this behavior exists since my mouse is ...
0
votes
1
answer
1k
views
Signing kernel mode driver on windows platform
I have a 64 bit PCI KMDF driver(kernel-mode) developed using Visual Studio 2017 on windows 10. The driver is built with toolset 'WindowsKernelModeDriver10.0' and the 'Desktop' target platform.
The ...