#include "cc.h"
Go to the source code of this file.
Defines | |
#define | me 0x00000004 |
Functions | |
BOOLEAN | CcCopyRead (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN Wait, OUT PVOID Buffer, OUT PIO_STATUS_BLOCK IoStatus) |
VOID | CcFastCopyRead (IN PFILE_OBJECT FileObject, IN ULONG FileOffset, IN ULONG Length, IN ULONG PageCount, OUT PVOID Buffer, OUT PIO_STATUS_BLOCK IoStatus) |
BOOLEAN | CcCopyWrite (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN BOOLEAN Wait, IN PVOID Buffer) |
VOID | CcFastCopyWrite (IN PFILE_OBJECT FileObject, IN ULONG FileOffset, IN ULONG Length, IN PVOID Buffer) |
LONG | CcCopyReadExceptionFilter (IN PEXCEPTION_POINTERS ExceptionPointer, IN PNTSTATUS ExceptionCode) |
BOOLEAN | CcCanIWrite (IN PFILE_OBJECT FileObject, IN ULONG BytesToWrite, IN BOOLEAN Wait, IN UCHAR Retrying) |
VOID | CcDeferWrite (IN PFILE_OBJECT FileObject, IN PCC_POST_DEFERRED_WRITE PostRoutine, IN PVOID Context1, IN PVOID Context2, IN ULONG BytesToWrite, IN BOOLEAN Retrying) |
VOID | CcPostDeferredWrites () |
|
|
|
Definition at line 1790 of file copysup.c. References BooleanFlagOn, _DEFERRED_WRITE::BytesToWrite, CACHE_NTC_DEFERRED_WRITE, CcAcquireMasterLock, CcDeferredWrites, CcDeferredWriteSpinLock, CcDirtyPageThreshold, CcIdleDelay, CcNoDelay, CcPostDeferredWrites(), CcReleaseMasterLock, CcTotalDirtyPages, _DEFERRED_WRITE::DeferredWriteLinks, _SHARED_CACHE_MAP::DirtyPages, _SHARED_CACHE_MAP::DirtyPageThreshold, _DEFERRED_WRITE::Event, Event(), Executive, ExInterlockedInsertHeadList(), ExInterlockedInsertTailList(), FALSE, _DEFERRED_WRITE::FileObject, FlagOn, FSRTL_FLAG_LIMIT_MODIFIED_PAGES, KeInitializeEvent, KernelMode, KeSetTimer(), KeWaitForSingleObject(), LazyWriter, _DEFERRED_WRITE::LimitModifiedPages, MmEnoughMemoryForWrite, _DEFERRED_WRITE::NodeByteSize, _DEFERRED_WRITE::NodeTypeCode, NULL, PAGE_SIZE, _LAZY_WRITER::ScanDpc, _LAZY_WRITER::ScanTimer, _SECTION_OBJECT_POINTERS::SharedCacheMap, TRUE, and WRITE_CHARGE_THRESHOLD.
|
|
Definition at line 31 of file copysup.c. References ASSERT, _VACB::BaseAddress, _PRIVATE_CACHE_MAP::BeyondLastByte1, _PRIVATE_CACHE_MAP::BeyondLastByte2, Buffer, CcCopyReadExceptionFilter(), CcCopyReadNoWait, CcCopyReadNoWaitMiss, CcCopyReadWait, CcCopyReadWaitMiss, CcFreeActiveVacb(), CcFreeVirtualAddress(), CcGetVirtualAddress(), CcMissCounter, CcPinFileData(), CcScheduleReadAhead(), CcThrowAway, CcUnpinFileData(), COMPUTE_PAGES_SPANNED, DebugTrace, ExRaiseStatus(), FALSE, _PRIVATE_CACHE_MAP::FileOffset1, _PRIVATE_CACHE_MAP::FileOffset2, _SHARED_CACHE_MAP::FileSize, FlagOn, FO_RANDOM_ACCESS, FsRtlNormalizeNtstatus(), GetActiveVacb, HOT_STATISTIC, me, MmCheckCachedPageState(), MmResetPageFaultReadAhead, MmSavePageFaultReadAhead, MmSetPageFaultReadAhead, _SHARED_CACHE_MAP::NeedToZero, NTSTATUS(), NULL, PAGE_SHIFT, PsGetCurrentThread, _PRIVATE_CACHE_MAP::ReadAheadEnabled, _PRIVATE_CACHE_MAP::ReadAheadLength, ROUND_TO_PAGES, SetActiveVacb, Status, TRUE, UNPIN, VACB_MAPPING_GRANULARITY, and VACB_OFFSET_SHIFT. Referenced by FsRtlCopyRead(), and UdfCommonRead().
|
|
Definition at line 1747 of file copysup.c. References ASSERT, EXCEPTION_EXECUTE_HANDLER, NT_SUCCESS, and NTSTATUS(). Referenced by CcCopyRead(), CcCopyWrite(), CcFastCopyRead(), CcFastCopyWrite(), and CcMapAndCopy().
|
|
Definition at line 1075 of file copysup.c. References ACTIVE_PAGE_IS_DIRTY, _SHARED_CACHE_MAP::ActiveVacbSpinLock, _VACB::BaseAddress, BooleanFlagOn, Buffer, CcCopyReadExceptionFilter(), CcFreeActiveVacb(), CcMapAndCopy(), CcPinFileData(), CcSetDirtyPinnedData(), CcUnpinFileData(), DebugTrace, ExRaiseStatus(), FALSE, FlagOn, FO_WRITE_THROUGH, FSRTL_FLAG_ADVANCED_HEADER, FsRtlNormalizeNtstatus(), GetActiveVacb, me, _SHARED_CACHE_MAP::NeedToZero, _SHARED_CACHE_MAP::NeedToZeroVacb, NTSTATUS(), NULL, PAGE_SHIFT, PAGE_SIZE, PFSRTL_ADVANCED_FCB_HEADER, SetActiveVacb, Status, TRUE, UNPIN, VACB_MAPPING_GRANULARITY, ZERO_FIRST_PAGE, ZERO_LAST_PAGE, and ZERO_MIDDLE_PAGES. Referenced by FsRtlCopyWrite().
|
|
Definition at line 1982 of file copysup.c. References BooleanFlagOn, _DEFERRED_WRITE::BytesToWrite, CACHE_NTC_DEFERRED_WRITE, CcAcquireMasterLock, CcDeferredWrites, CcDeferredWriteSpinLock, CcPostDeferredWrites(), CcReleaseMasterLock, CcScheduleLazyWriteScan(), Context1, _DEFERRED_WRITE::Context1, Context2, _DEFERRED_WRITE::Context2, DEFERRED_WRITE, _DEFERRED_WRITE::DeferredWriteLinks, _DEFERRED_WRITE::Event, ExAllocatePoolWithTag, ExInterlockedInsertHeadList(), ExInterlockedInsertTailList(), _DEFERRED_WRITE::FileObject, FSRTL_FLAG_LIMIT_MODIFIED_PAGES, LazyWriter, _DEFERRED_WRITE::LimitModifiedPages, _DEFERRED_WRITE::NodeByteSize, _DEFERRED_WRITE::NodeTypeCode, NonPagedPool, NULL, _DEFERRED_WRITE::PostRoutine, and _LAZY_WRITER::ScanActive.
|
|
Definition at line 588 of file copysup.c. References ASSERT, _VACB::BaseAddress, _PRIVATE_CACHE_MAP::BeyondLastByte1, _PRIVATE_CACHE_MAP::BeyondLastByte2, Buffer, CcCopyReadExceptionFilter(), CcCopyReadWait, CcCopyReadWaitMiss, CcFreeActiveVacb(), CcFreeVirtualAddress(), CcGetVirtualAddress(), CcMissCounter, CcScheduleReadAhead(), CcThrowAway, COMPUTE_PAGES_SPANNED, DebugTrace, ExRaiseStatus(), FALSE, _PRIVATE_CACHE_MAP::FileOffset1, _PRIVATE_CACHE_MAP::FileOffset2, _SHARED_CACHE_MAP::FileSize, FlagOn, FO_RANDOM_ACCESS, FsRtlNormalizeNtstatus(), GetActiveVacb, HOT_STATISTIC, me, MmCheckCachedPageState(), MmResetPageFaultReadAhead, MmSavePageFaultReadAhead, MmSetPageFaultReadAhead, _SHARED_CACHE_MAP::NeedToZero, NTSTATUS(), NULL, PAGE_SHIFT, PsGetCurrentThread, _PRIVATE_CACHE_MAP::ReadAheadEnabled, _PRIVATE_CACHE_MAP::ReadAheadLength, ROUND_TO_PAGES, SetActiveVacb, Status, TRUE, VACB_MAPPING_GRANULARITY, and VACB_OFFSET_SHIFT. Referenced by FsRtlCopyRead().
|
|
Definition at line 1482 of file copysup.c. References ACTIVE_PAGE_IS_DIRTY, _SHARED_CACHE_MAP::ActiveVacbSpinLock, ASSERT, _VACB::BaseAddress, BooleanFlagOn, Buffer, CcCopyReadExceptionFilter(), CcFreeActiveVacb(), CcMapAndCopy(), DebugTrace, ExRaiseStatus(), FALSE, FlagOn, FO_WRITE_THROUGH, FsRtlNormalizeNtstatus(), GetActiveVacb, me, _SHARED_CACHE_MAP::NeedToZero, _SHARED_CACHE_MAP::NeedToZeroVacb, NTSTATUS(), NULL, PAGE_SHIFT, PAGE_SIZE, SetActiveVacb, Status, VACB_MAPPING_GRANULARITY, ZERO_FIRST_PAGE, ZERO_LAST_PAGE, and ZERO_MIDDLE_PAGES. Referenced by FsRtlCopyWrite().
|
|
Definition at line 2099 of file copysup.c. References _DEFERRED_WRITE::BytesToWrite, CcCanIWrite(), CcDeferredWrites, CcDeferredWriteSpinLock, _DEFERRED_WRITE::Context1, _DEFERRED_WRITE::Context2, _DEFERRED_WRITE::DeferredWriteLinks, _DEFERRED_WRITE::Event, ExFreePool(), FALSE, _DEFERRED_WRITE::FileObject, KeSetEvent(), _DEFERRED_WRITE::LimitModifiedPages, NULL, and _DEFERRED_WRITE::PostRoutine. Referenced by CcCanIWrite(), CcDeferWrite(), CcFlushCache(), CcLazyWriteScan(), CcUnpinRepinnedBcb(), and CcWriteBehind().
|