You should do it in the dispatch handler.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: Lyndon J. Clarke [mailto:xxxxx@gcplc.com]
Sent: Tuesday, February 25, 2003 7:59 AM
To: File Systems Developers
Subject: [ntfsd] Re: Garbabe FileObject SectionObjectPointer in completion
of IRP_MJ_CLOSE?
Okay so that’s that part of the artice sorted then. Now I am wondering,
how are we supposed to use the “simpler” solution, which means we have to
watch the SectionObjectPointers to see if they have become NULL - which we
then /have/ to do in the completion of IRP_MJ_CLOSE (!) - when they will
be garbage? I guess, if they are garbage, handle as if they were NULL.
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Tony. What would be the point of checking the
FileObject->SectionObjectPointers in dispatch instead of completion? It is
certain that they will not be NULL in dispatch because the last
IRP_MJ_CLOSE can not have happened yet!
Lyndon,
That is NOT true - these fields belong to the memory manager. So long as
they are NOT NULL the IRP_MJ_CLOSE won’t be sent. BECAUSE MM sets these
fields to NULL, it decrements the reference count. When the ref count hits
zero, IRP_MJ_CLOSE is sent.
Hence, look in the dispatch routine.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: Lyndon J. Clarke [mailto:xxxxx@gcplc.com]
Sent: Tuesday, February 25, 2003 8:28 AM
To: File Systems Developers
Subject: [ntfsd] Re: Garbabe FileObject SectionObjectPointer in completion
of IRP_MJ_CLOSE?
Dejan. What would be the point of checking the
FileObject->SectionObjectPointers in dispatch instead of completion? It is
certain that they will not be NULL in dispatch because the last
IRP_MJ_CLOSE can not have happened yet!
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Hi Tony. Thanks. Aaargghh! I’ve been seeing this whole thing backwards all
this time. Apologies for all of the dumber than dumb questions. Lyndon.