Re: Extra reference?




<BubbaGump> wrote in message
news:f0lef2ti0an9gtnhia9rb9rer83cptcntk@xxxxxxxxxx
I'm also a bit annoyed at the attitude towards invention. In a couple
locations it encourages simply copying and pasting existing code
because it's supposedly too difficult to learn to write such code
oneself. Why am I learning how to write a driver if there's no reason
to learn it? It's like an instructor saying, "This isn't important,
but I'll waste time telling you about it anyway. Just don't pay too
much attention because you won't understand." I realize there's an
advantage to not reinventing the wheel, but if it's so difficult to
write a driver from scratch then why doesn't the driver model hide
more of these details? Will the same apply to KMDF?


Invention is fine if you are solving a new problem. The problem here is
that a lot of driver writing with WDM is boilerplate code, and getting it
right is not always easy (if you search the archives of this group and the
OSR groups you will see an amazing amount of thrashing on handling cancel
before the Cancel Safe queue routines).

Most driver writers, had one or more samples they used as base, and yes cut
and pasted large portions of these to the next driver. In one sense this
was a driver framework based on source code.

This is the purpose of KMDF, a lot of the handling of PnP / Power / Cancel
became very complex because it grew over time, and because not all the
implications were realized at the beginning. KMDF is a model to hide much
of this.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
http://www.windrvr.com
Remove StopSpam from the email to reply



.



Relevant Pages

  • Re: about driver architecture.
    ... but I gonna have a try to go KMDF. ... The thing is KMDF takes a ton of the grunt work out of a driver (and this ... efforts by using WDM? ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: Determine if process is destroyed
    ... Yes, you will always get a cancel notice, otherwise there is no way to know ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... >> Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: about driver architecture.
    ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ... Remove StopSpam to reply ... but I gonna have a try to go KMDF. ...
    (microsoft.public.development.device.drivers)
  • Re: Cancel IO problems on Server 2003
    ... Your crash is not related to using any old function. ... More importantly run your driver under verifier. ... An API library ... will attempt to cancel the operation ...
    (microsoft.public.development.device.drivers)
  • Re: how to use DDK for USB
    ... recomend is you consider using KMDF instead of the old bulkusb sample and ... Since KMDF is easier to program, ... Don Burn (MVP, Windows DDK) ... Windows 2k/XP/2k3 Filesystem and Driver Consulting ...
    (microsoft.public.development.device.drivers)

Loading