I am using ExQueueWorkItem, but documentation says it is obsolete. Is it OK to use it?
----- Original Message -----
From: Lijun Wang
To: File Systems Developers
Sent: Monday, January 27, 2003 12:32 PM
Subject: [ntfsd] Problem with passing partial of the mdl address to the lower driver.
Hi,
In my redirector’s IRP_MJ_READ, sometimes I need to pass partial of the buffer obtained from the MDL address, to the lower driver (TDI).
For example, say the buffer from the MDL is pointed by ptrBuffer, I would like pass the buffer beginning with ptrBuffer + 30. I did this by creating another MDL(since TDI only taks MDL) agains address at ptrBuffer + 30. I did not try to probe and lock it. This game me a lot of trouble. The cache manager bugchecks with PFN_LIST corrupt…
Has anyone attempted the same thing?
If one can’t pass the buffer partially, can I directly pass the MDL to the lower driver?
Any suggestion is appreciated!
Lijun Wang
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now — You are currently subscribed to ntfsd as: xxxxx@seg.inf.cu To unsubscribe send a blank email to xxxxx@lists.osr.com
It is obsolete for the DDK. It is considered OK for use in file systems.
Realize the reason it is obsolete for the DDK: it essentially is another way
to ensure that the driver is not safely unloadable, since the OS doesn’t
reference count your device just because you have work items in the queue.
The newer I/O Manager routines for work items DO maintain such reference
counts, so that your driver can’t be unloaded while you have an outstanding
work item. The goal for most device drivers is to be unloadable. For file
systems and filter drivers that is generally not an explicit goal for a
myriad of reasons.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com http:</http:>
Looking forward to seeing you at our revised and updated file systems class
in February 2003 (Boston, MA).
-----Original Message-----
From: Ratmil Torres [mailto:xxxxx@seg.inf.cu]
Sent: Monday, January 27, 2003 7:10 PM
To: File Systems Developers
Subject: [ntfsd] ExQueueWorkItem
I am using ExQueueWorkItem, but documentation says it is obsolete. Is it OK
to use it?
----- Original Message -----
From: Lijun Wang mailto:xxxxx
To: File Systems mailto:xxxxx Developers
Sent: Monday, January 27, 2003 12:32 PM
Subject: [ntfsd] Problem with passing partial of the mdl address to the
lower driver.
Hi,
In my redirector’s IRP_MJ_READ, sometimes I need to pass partial of the
buffer obtained from the MDL address, to the lower driver (TDI).
For example, say the buffer from the MDL is pointed by ptrBuffer, I would
like pass the buffer beginning with ptrBuffer + 30. I did this by creating
another MDL(since TDI only taks MDL) agains address at ptrBuffer + 30. I
did not try to probe and lock it. This game me a lot of trouble. The cache
manager bugchecks with PFN_LIST corrupt…
Has anyone attempted the same thing?
If one can’t pass the buffer partially, can I directly pass the MDL to the
lower driver?
Any suggestion is appreciated!
Lijun Wang
_____
Do you Yahoo!?
Yahoo! http: Mail
Plus - Powerful. Affordable. Sign up now
http: — You are
currently subscribed to ntfsd as: xxxxx@seg.inf.cu To unsubscribe send a
blank email to xxxxx@lists.osr.com
—
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com</http:></http:></mailto:xxxxx></mailto:xxxxx>