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

Home NTDEV

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: https://www.osr.com/osr-learning-library/


Does layering of device drivers imply FDO + filter arrangement?

milan_durovicmilan_durovic Member Posts: 13

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?

Thanks

Comments

  • Mark_RoddyMark_Roddy Member - All Emails Posts: 4,559

    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.

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!
Writing WDF Drivers 12 September 2022 Live, Online
Internals & Software Drivers 23 October 2022 Live, Online
Kernel Debugging 14 November 2022 Live, Online
Developing Minifilters 5 December 2022 Live, Online