Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results
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/
Hi dear all,
I'm not sure how to setup
PrivateCacheMap member of
_FILE_OBJECT. Does it has any system implied requirements on it ? I mean something like that
FCB must be started with a
FSRTL_ADVANCED_FCB_HEADER. Many thanks!
|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|
You set up SectionObjectPointers (along with FsContext, FsContext2) and you call CcInitalizeCacheMap at the appropriate time. Cc worries about all the rest.
The FAT example shows how to do all this
thank you. I'll try it. This doc confused me which states that this field is setup by FSD.
You didn't specify what type of driver you have, but the file system does own the FsContext, FsContext2, SOP, etc. If you have a normal filter (i.e. not a layered file system in a filter) then you shouldn't be setting these fields. As Rod pointed out, FAT does this, but of course it is a file system.
If in the context of FSD, does this mean FSD must set
PrivateCacheMapup ? how ?
BTW I've reviewed the fastfat example , found no where it will setup
Thank you. To be a proficient driver developer. I have to debug a lot. It's really boring .
A Windows file system is a significant undertaking (years not months). Patience is key and assume that anything you write in the first 6-9 months will probably be just a learning exercise. Good luck!