Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Re: Does SCM loads a WDF?

Reply
Thread Tools Display Modes

Re: Does SCM loads a WDF?

 
 
Brandon Wilson [MSFT]
Guest
Posts: n/a

 
      04-23-2010
?> 1) If I need to design a non-PnP driver that can be loaded by
> Openservice(..) API. WDF is not my base choice, becuase
> WDF support PnP only, is it correct?


KMDF supports non-pnp devices. Check out the nonpnp sample in the WDK.

> 2) I have tried to change my driver from WDM to WDF on USB stack, but
> the CPU usage in WDF is more than WDM.
> WDF increases 5% CPU usage while AP calls on going. Is it true or
> it just a problem on my WDF coding ?


There is usually going to be some overhead involved when using WDF. How
much that is and if you can reduce it really depends on your driver, and it
is hard for someone to give suggestions without sitting down and analyzing
the code.

> 3) My new USB client driver is re-designed with WDF. As I know, the
> sync event in WDF will not work around on others.
> What I mean: WDF has their sync event system that can not work
> with external WDM client driver if I need to pass sync object to
> external driver. This situation would have hung problem.
> In fact, I have tried to use InterLock to pass this sync object with
> other external client driver, but it's BSOD.
> Is it my code problem or WDF has the limition ????


I'm not really sure what your question is here. WDF is just a wrapper
around WDM, so if you want to pass synchronization objects between drivers
there is nothing stopping you. With that being said- trying to synchronize
state like this across drivers is extremely problematic, you should look at
improving your design to avoid doing this.

Brandon

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Temporary User Profile" always loads! katie88 Windows Vista Administration 2 02-03-2011 07:15 AM
Windows doesn't loads Daniel2049 Windows Vista Performance 1 08-11-2007 10:33 AM
Failed Driver Install after GUI loads MDK Windows Vista Hardware 2 09-10-2006 12:31 AM
Re: Loads of questions Chris De Herrera ActiveSync 0 04-23-2005 09:38 PM
ActiveSync Loads but will not open Tim Kemp ActiveSync 1 10-08-2004 07:26 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59