// ntifs.h
LARGE_INTEGER CcGetDirtyPages(
[in] PVOID LogHandle,
[in] PDIRTY_PAGE_ROUTINE DirtyPageRoutine,
[in] PVOID Context1,
[in] PVOID Context2
);
View the official Windows Driver Kit DDI referenceNo description available.
The CcGetDirtyPages routine searches for dirty pages in all files that match a given log handle.
LogHandle [in]Log handle stored by a previous call to CcSetLogHandleForFile.
DirtyPageRoutine [in]Pointer to a callback routine that builds up a dirty page table from the pages found. This routine, which is called for each dirty page found, is declared as follows:
typedef
VOID (*PDIRTY_PAGE_ROUTINE) (
IN PFILE_OBJECT FileObject,
IN PLARGE_INTEGER FileOffset,
IN ULONG Length,
IN PLARGE_INTEGER OldestLsn,
IN PLARGE_INTEGER NewestLsn,
IN PVOID Context1,
IN PVOID Context2
);
Pointer to the file object for the file containing the dirty page.
Pointer to a variable that specifies the starting byte offset of the dirty page within the cached file.
Length, in bytes, of the dirty page.
Oldest logical sequence number (LSN) found in the dirty page.
Newest LSN found in the dirty page.
First context parameter.
Second context parameter.
Context1 [in]First context parameter to be passed to the DirtyPageRoutine.
Context2 [in]Second context parameter to be passed to the DirtyPageRoutine.
CcGetDirtyPages returns the oldest LSN found in the set of dirty pages. If there are no dirty pages, CcGetDirtyPages returns zero.
File systems call CcGetDirtyPages to return dirty pages in all files that match a given log handle. CcGetDirtyPages searches for dirty pages in all files that match the given LogHandle and calls the DirtyPageRoutine for each page.
To set a log handle for a file, use CcSetLogHandleForFile.