Reg: RtlCopyMemory

In IFS Documentation it says that RtlCopyMemory can be run in any IRQL
except that when in DISPATCH_LEVEL memory blocks should be resident.

What does resident memory means???
How can I know if a memory block is resident or not??

Thanks,
VC

OSR Online wrote:

Resident memory would refer to non-paged memory (stored in physical RAM,
not the pagefile).

If an allocation was declared as page-able and was sent to disk a page
fault would occur.
Page faults can not be satisfied while the system’s IRQL is at
dispatch_level (and a BSOD
will occur).

Have a look at ExAllocatePool and look specifically at the paged vs
nonpaged options.

Matt

In IFS Documentation it says that RtlCopyMemory can be run in any IRQL
except that when in DISPATCH_LEVEL memory blocks should be resident.

What does resident memory means???
How can I know if a memory block is resident or not??

Thanks,
VC


NTFSD is sponsored by OSR

For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars

You are currently subscribed to ntfsd as: matt-martin@tx.rr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Resident memory can be non-paged memory or paged memory in RAW. That is to say, if you can confirm that the memroy area is in RAW, not in pagefile, you can use RtlCopyMemory. WDK document has many issues about memory management in windows driver. You can get help from the following link:

http://www.microsoft.com/whdc/driver/kernel/mem-mgmt.mspx