Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results


Before Posting...

Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging

The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.

Check out The OSR Learning Library at:

Does layering of device drivers imply FDO + filter arrangement?

milan_durovicmilan_durovic Member Posts: 19

Dear all,

I have a simple NV RAM device, for which I wrote a driver. This driver simply allows reads/writes at a given offset from the start, within the addressable range.

Now, I would like to add another layer, that uses the simple device underneath, but builds a more complicated structure on top of it, like accessing a part of the storage space via a key. As I have 3 physical NV RAM devices, I need to be able to apply the new layer to a selected storage device only. It would be even better if the selection of the NV RAM device to be used with the new layer could be postponed for later and driven by an application.

What would be the best arrangement for this scenario? A filter driver? Could the filter driver be inserted into the device stack after the simple driver has been loaded and running?

Is it possible not to go down the filter driver path? Eg., just have a completely separate, software driver, that opens the simple device in an exclusive mode, and then implements the access functionality I want?



  • Mark_RoddyMark_Roddy Member - All Emails Posts: 4,589

    Is your nv ram device a pnp device? If yes then generally filter drivers are not demand loaded but automatically loaded as part of the device pnp configuration. If instead your nv ram device is a legacy device (not pnp) then you can attach a filter driver on demand, in fact that is the only way to attach a filter driver.

    Either approach (filter, separate software driver) works. Note that a filter does not have to be active - so the filter approach, especially in a pnp stack, simplifies configuration and installation and pnp/power state management, and leaves the base device unmodified until your application needs your new functionality.

  • milan_durovicmilan_durovic Member Posts: 19

    Sorry for the late thanks - my post was somehow blocked for a while, or at least, I couldn't see any of it

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 January 2023 Live, Online
Developing Minifilters 20 March 2023 Live, Online
Internals & Software Drivers 17 April 2023 Live, Online
Writing WDF Drivers 22 May 2023 Live, Online