WinCE kernel-mode vs. user-mode driver

WinCE kernel-mode vs. user-mode driver

Post by bWF4 » Thu, 23 Dec 2004 20:39:01


Hello,

I have noticed a very great difference comparing the performance of user
and kernel mode drivers for CE 4.2.

When a driver runs in user mode and I call a driver service from my
application using DeviceIoControl it takes about 40 microsec. The service
does not perform any operation and returns immediately.
If I compile the driver as a kernel mode driver and load it with
LoadIntChainHandler a call from my application of the same driver service
with KernelLibIoControl takes only 1 microsec. I am using XScale 400 MHz
CPU with Win CE 4.2.
Is this behaviour intended or do I make anything wrong?

Thanks in advance

Max
 
 
 

WinCE kernel-mode vs. user-mode driver

Post by Arkady Fre » Thu, 23 Dec 2004 22:04:27

Are you sure you checked the same direction , because KernelLibIoControl()
use to talk to interrupt handler from driver and not from user mode to
driver.
Any case ask additionally on
microsoft.public.windowsce.platbuilder
Arkady