Hi,
Got some doubts with bottom half.Here, I consider tasklets only.
Also , I consider non-preemptible kernel only.
Suppose consider a ethernet driver in which rx interrupt processing is doing some 10 functions calls.(bad programming :) )
Now, looking at performance perspective if 9 function calls can be moved to a tasklet and only 1...
Hello all
I am learning now days programming drivers.
I am doing my learning from this book Linux Device Drivers
But I am little bit lack of practice. Can you recommend me some simple projects that I can get started with.
Or some open source project that newbie can understand what is going on.
Additional examples and tutorials w...
By forcibly I mean even when some audio applications are using it.
By reload I mean the kind of thing that happens after the shared mode sample rate of the speaker is changed in the advanced tab of Speaker Properties. Any audio applications stop immediately.
Is it possible to do such a restart programatically? (Or even for that matter ...
I'm using InstallShield to install my application, a driver and a service.
I need to install the plug-N-play driver only if it's hardware ID was found in the device manager. The driver installation is done using DPInst.exe.
My problem, is that a user can sometimes manually uninstall the driver (After it was installed or even uninstall th...
In testing certain network device driver receive features, I need to send special packets on the wire. I know I need to open a raw socket and push the bytes out. Is there some well-known example (C, perl, whatever) code already available for playing at this level?
(added later) I would prefer non-platform-specific answers, they'll be ...
I am a novice to Windows printer driver, and would appreciate any pointers on the following.
Enumerating as a printer (In the
print menu, similar to print to PDF
file)
Capturing the print job and encode it
into a JPG file (say)
I am comfortable with JPG encoding, as I am thinking of using open source tools like ImageMagick.
But I am ...
Hello
How to write simpliest audio virtual device driver in WinXP? I know that one way is to write a WDM driver but I suppose it is not an easyly task. I need to implement some audio filtering for a Flash based application. Unfortunatelly it seems that it is the only way to do it - outside a Flash, by a device driver, then a Flash app c...
Hi,
Is there any WINAPI call available to get the status of a particular device. I am able to get a handle to the device using the calls,
SetupDiGetClassDevs
SetupDiEnumDeviceInfo and
SetupDiSetSelectedDevice
But I want to uninstall the device only if the status shows error code 28. (Please refer http://support.microsoft.com/kb/125174...
I have added a TSHARC touchscreen driver to my Windows CE project, but the touch does not work. The dll is there, as is the touchscreen calibration executable. I have no visibility into which drivers are loaded and when. Any guidance would be appreciated.
...
The company I work for is using a 3rd-party USB driver to communicate with one of the devices we manufacture. Everything has been working perfectly for about 5 years now. However, we recently sold some systems to a large German company, and they are reporting that every time they try to run our software, they first have to re-install t...
The read() and write() callback functions in our ‘cmosram.c’ device-driver only transfer a single byte of data for each time called, so it takes 128 system-calls to read all of the RTC storage-locations!
Can you improve this driver’s efficiency, by modifying its read() and write() functions, so they’ll transfer as many valid bytes as th...
First of all, it very well could be that I'm approaching my problem the wrong way, in which case I'd gladly accept alternatives.
What I'm trying to achieve is to detect which drive was created after a USB device has been connected to a computer.
Here is the simplified workflow:
// Get list of removable drives before user connects the ...
I am learning windows NDIS Intermediate(IM) driver development.I am getting problem in installation . I always need to install it manually.
My question is how can i do NDIS intermediate (IM) driver installation programmatically
Regards
Navaneeth
...
I have some questions on Cache synchronization operations.
Invalidate - before cpu tries to read a portion of memory updated by a device, the corresponding memory needs to be invalidated.
Flush - Before the device read a portion of memory updated by CPU, CPU must flush(write back is also correct? ) the contents from cache to memory.
...
Hi,
I'm new to Windows device driver programming. I know that certain operations can only be performed at IRQL PASSIVE_LEVEL. For example, Microsoft have this sample code of how to write to a file from a kernel driver:
if (KeGetCurrentIrql() != PASSIVE_LEVEL)
return STATUS_INVALID_DEVICE_STATE;
Status = ZwCreateFile(...);
My qu...
Can this codes cause a problem?(PAGE_FAULT_IN_NONPAGED_AREA)
KEVENT waitEvent; //allocate on stack
LARGE_INTEGER timeout;
KeInitializeEvent(&waitEvent, NotificationEvent, FALSE);
KeResetEvent(&waitEvent);
timeout.QuadPart = -(100 * 10000); // 100 ms
while(pDataChannel->useCount)
{
KeWaitForSingleObject(&waitEvent, Executive, Kerne...
Hey...
I'm in way over my head and looking for a broader understanding of what it would take to feed alternate data into a mouse driver to control the pointer without moving the mouse.
I have modified a driver (untested) to provide random data, but I need to be able to turn on/off the random mouse data and I don't think a simple scanf ...
I am developing USB product on an AVR32 which is going well. We have used a USB library and have the USB Device working. The USB library came with an .inf file that we simply point the windows hardware installation wizard at and our USB Device which then appears as a COM port on the windows machine.
I am now writing a VB application f...
Is it possible for a USB device to support multiple drivers? I'd like to support my own proprietary driver but also CCID as a second choice. When the device is plugged in, the user can select which one to use. The driver to use is determined by what the USB descriptor says, right? If that is so, is it possible to indicate that both drive...
Hello,
I am running into an "out of memory" error from OpenGL on glReadPixels() under low-memory conditions. I am writing a plug-in to a program that has a robust heap mechanism for such situations, but I have no idea whether or how OpenGL could be made to use it for application memory management. The notion that this is even possible ...