device-driver

how to manage qdisc from kernel

I have trouble to find the kernel API to enable some qdisc policies "tc" utility run from user-space. I found the modules in net/sched/sch_*.c but I'm not sure how to use them. For instance, if I want to enable TBF, should I do something like the following in my code? static struct Qdisc_ops tbf_qdisc_ops __read_mostly = { .ne...

USB driver bus relation (virtual Port number)

I want to get the virtual port number of usb driver. This property can be found in device manager name as bus relation or children. if (SetupDiGetDeviceRegistryProperty(devInfo, &devInfoData, SPDRP_ADDRESS, ...

Generating mouse events in Mac OS X

Hi, I have an USB device that will send out some proprietary data and I have some algorithm that converts it to mouse coordinates, the question I have is how do I write a driver that reports to Mac OS X? I have seen some references to IOHIDPostEvent but I cannot find detailed documentation on Apple's Developer Website. Is this the corr...

Simulate error code 1 in windows device tree

Hi, Is it possible to manually simulate a device error code 1? The link, http://support.microsoft.com/kb/125174 talks about different error codes. In my application, I want to automate the update-driver option, which is a fix for the error code 1. But in order to test the same, i need to simulate error code 1 and check if my fix works. C...

Linux - mounting a user space file system(mimicking one :-) ) as a FileSystem

Hi Guys, I have a piece of C code which with a chunk of memory(static array) can mimic file operations (It has APIs similar to fopen/fclose etc). So, any code that is compiled with this mimicking FileSystem can use these APIs as a FileSystem for all their needs :) But I was wondering, if its possible somehow to register these APIs with...

how find program has device driver

how can i find whether a program has device driver or not (or know program run in ring0 or ring3) i need function(api) for this in c# or c/c++ like regmon it has device driver thank ...

Windows PCIe device dirver issue. Windows Crashes on data reception from PCIe interface

I am writing a PCIe device driver. With PCIe I have a storage device connected. I have allocated a buffer in memory using malloc() which I use to transmit data to and receive from my hardware. The buffer area is locked and the physical addresses of the locked pages are passed to the DMA, I have in my hardware. DMA uses physical addresses...

What happens after netdev_open?

I'm trying to understand a wireless linux device driver. So after netdev_open is called... what happens? I know packets are being transmitted through an xmit function, but how does the code get there? ...

Test driver built from DMusUART sample doesn't show up as a MIDI port to other programs

Hi, Since an earlier question regarding creating a virtual MIDI device (so I can direct MIDI to applications on same PC):- I have tried to build a test driver using the adapter shown in the DDK sample "MPU401" and created a Miniport modelled (almost exactly) on the DMusUART sample. After blue-screening my PC a few times and probably d...

How do I package up a windows driver for deployment?

I have a windows driver which is sys and inf files which I need to package up for deployment on end user systems. How do I do this and what tools can I use? ...

Driver Load error in Non Admin user account

Dear Sir I have written a driver, it works fine in Administrator account on Win XP. But my final product is to run on non admin account. I am running it on non admin account for testing. But driver is not able to load. CreateFile() function returns error no 6. which means INVALID_HANDLE. Please reply ASAP. ...

specific interface name for an interface in linux

Hi, Is there a possibility that I can hardcode interface name(say eth1) to a specific interface in the linux driver code? This is in a controlled environemnt only, so breaking from default linux way(dynamically assigning name) is ok. ...

Can a 32 bit User-mode driver run on top of a 64 bit OS?

Hello everyone, I have been checking out some info about 64-bit driver development; I found that drivers have to be re-written in order to be compatible with a 64 bit OS. However, I was wondering if this also holds true for User-mode drivers. The reason that I am asking this is because my understanding is that user mode drivers pass t...

Why does Windows start chkdsk at boot time?

We have a file system filter driver. It has a feature which encrypts some files. We implemented this feature yesterday, but after shipping the feature, when we reboot sometimes Windows will check the file system by running chkdsk. Has anyone else developing filter drivers encountered this problem? How can we solve this? ...

Sending a specific SCSI command to a SCSI device in Windows

Hi, Does windows have specific interface by which I can send a specific scsi command such Inquiry to scsi device ? I searched the net, found passing reference to SCSI Pass Through interface. But Its very Vague. Is there any documentation for that API on how to use it?? ...

Reverse Engineering a Black-Box Serial Protocol

I am currently writing an OS X driver for the NewTek LiveControl LC-11 as seen here. newtek.com/addons/livecontrol.php In the course of my reverse engineering I have found that it is using a serial to USB converter and that it communicates with hexadecimal output when a button is pushed or an analog value changes. Using this output...

How should i get started on Device Drivers

I want to code drivers in C in windows XP/VISTA/7,though I think its very tough.Can I get some hints as to how to start or books to follow? Drivers can be from my USB port/PCI/PCI Express to PC!! I know as to where I can search for books, I would like to know as to what the basic knowledge I should start with. Do I need to have har...

How Do i Convert I/O Mapping driver to Memory Mapping Driver?

I had written the driver in C for my PCICard where i used I/O Mapping.Now i want to use the same driver for PCIEXPRESS card using Memory Mapping. Can any one Suggest me how to do it? ...

Truecrypt 7.0 build

I'm trying to build Truecrypt 7.0 I have build the driver. But I can't build the Boot Project. 1>------ Build started: Project: Boot, Configuration: Release Win32 ------ 1>Performing Makefile project actions 1>NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\cl.exe"' : return code '0xc0000135' 1>Stop. T...

solaris test driver crashes

In solaris I wrote a driver and it is crashing.. But my solaris kernel is also getting crashed because of it. The driver is getting loaded every time the system resets and kernel is dumping core and reboots.. How to stop the loading of the crashing driver whenever the system reboots? ...