ReactOS 0.4.16-dev-13-ge2fc578
|
Go to the source code of this file.
Classes | |
struct | _PF_SCENARIO_ID |
struct | _PF_LOG_ENTRY |
struct | _PFSN_LOG_ENTRIES |
struct | _PF_SECTION_INFO |
struct | _PF_TRACE_HEADER |
struct | _PFSN_TRACE_DUMP |
struct | _PFSN_TRACE_HEADER |
struct | _PFSN_PREFETCHER_GLOBALS |
struct | _ROS_SHARED_CACHE_MAP |
struct | _ROS_VACB |
struct | _INTERNAL_BCB |
struct | _LAZY_WRITER |
struct | _WORK_QUEUE_ENTRY |
Macros | |
#define | _CC_DEBUG_ 0x00 |
#define | CC_API_DEBUG 0x01 |
#define | CCTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__) |
#define | READAHEAD_DISABLED 0x1 |
#define | WRITEBEHIND_DISABLED 0x2 |
#define | SHARED_CACHE_MAP_IN_CREATION 0x4 |
#define | SHARED_CACHE_MAP_IN_LAZYWRITE 0x8 |
#define | NODE_TYPE_DEFERRED_WRITE 0x02FC |
#define | NODE_TYPE_PRIVATE_MAP 0x02FE |
#define | NODE_TYPE_SHARED_MAP 0x02FF |
#define | CcBugCheck(A, B, C) KeBugCheckEx(CACHE_MANAGER, BugCheckFileId | ((ULONG)(__LINE__)), A, B, C) |
#define | CcRosVacbIncRefCount(vacb) InterlockedIncrement((PLONG)&(vacb)->ReferenceCount) |
#define | CcRosVacbGetRefCount(vacb) InterlockedCompareExchange((PLONG)&(vacb)->ReferenceCount, 0, 0) |
Enumerations | |
enum | _WORK_QUEUE_FUNCTIONS { ReadAhead = 1 , WriteBehind = 2 , LazyScan = 3 , SetDone = 4 } |
#define CcBugCheck | ( | A, | |
B, | |||
C | |||
) | KeBugCheckEx(CACHE_MANAGER, BugCheckFileId | ((ULONG)(__LINE__)), A, B, C) |
#define CcRosVacbGetRefCount | ( | vacb | ) | InterlockedCompareExchange((PLONG)&(vacb)->ReferenceCount, 0, 0) |
#define CcRosVacbIncRefCount | ( | vacb | ) | InterlockedIncrement((PLONG)&(vacb)->ReferenceCount) |
typedef struct _INTERNAL_BCB INTERNAL_BCB |
typedef struct _LAZY_WRITER LAZY_WRITER |
typedef struct _PF_LOG_ENTRY PF_LOG_ENTRY |
typedef struct _PF_SCENARIO_ID PF_SCENARIO_ID |
typedef struct _PF_SECTION_INFO PF_SECTION_INFO |
typedef struct _PF_TRACE_HEADER PF_TRACE_HEADER |
typedef struct _PFSN_LOG_ENTRIES PFSN_LOG_ENTRIES |
typedef struct _PFSN_TRACE_DUMP PFSN_TRACE_DUMP |
typedef struct _INTERNAL_BCB * PINTERNAL_BCB |
typedef struct _LAZY_WRITER * PLAZY_WRITER |
typedef struct _PF_LOG_ENTRY * PPF_LOG_ENTRY |
typedef struct _PF_SCENARIO_ID * PPF_SCENARIO_ID |
typedef struct _PF_SECTION_INFO * PPF_SECTION_INFO |
typedef struct _PF_TRACE_HEADER * PPF_TRACE_HEADER |
typedef struct _PFSN_LOG_ENTRIES * PPFSN_LOG_ENTRIES |
typedef struct _PFSN_TRACE_DUMP * PPFSN_TRACE_DUMP |
typedef struct _PFSN_TRACE_HEADER * PPFSN_TRACE_HEADER |
typedef struct _ROS_SHARED_CACHE_MAP * PROS_SHARED_CACHE_MAP |
typedef struct _WORK_QUEUE_ENTRY * PWORK_QUEUE_ENTRY |
typedef enum _WORK_QUEUE_FUNCTIONS * PWORK_QUEUE_FUNCTIONS |
typedef struct _WORK_QUEUE_ENTRY WORK_QUEUE_ENTRY |
Definition at line 56 of file copy.c.
Definition at line 83 of file fssup.c.
Referenced by Phase1InitializationDiscard().
Definition at line 1476 of file view.c.
Definition at line 83 of file mdlsup.c.
Referenced by CcMdlReadComplete(), and FsRtlMdlReadCompleteDev().
VOID NTAPI CcMdlWriteComplete2 | ( | IN PFILE_OBJECT | FileObject, |
IN PLARGE_INTEGER | FileOffset, | ||
IN PMDL | MdlChain | ||
) |
Definition at line 111 of file mdlsup.c.
Referenced by CcMdlWriteComplete(), and FsRtlMdlWriteCompleteDev().
VOID CcPerformReadAhead | ( | IN PFILE_OBJECT | FileObject | ) |
Definition at line 130 of file copy.c.
Referenced by CcWorkerThread().
Definition at line 114 of file fssup.c.
Referenced by Phase1InitializationDiscard().
Definition at line 73 of file copy.c.
Referenced by CcCanIWrite(), CcDeferWrite(), and CcLazyWriteScan().
VOID CcPostWorkQueue | ( | IN PWORK_QUEUE_ENTRY | WorkItem, |
IN PLIST_ENTRY | WorkQueue | ||
) |
Definition at line 53 of file lazywrite.c.
Referenced by CcLazyWriteScan(), CcScanDpc(), and CcScheduleReadAhead().
VOID CcRosDereferenceCache | ( | PFILE_OBJECT | FileObject | ) |
BOOLEAN CcRosEnsureVacbResident | ( | _In_ PROS_VACB | Vacb, |
_In_ BOOLEAN | Wait, | ||
_In_ BOOLEAN | NoRead, | ||
_In_ ULONG | Offset, | ||
_In_ ULONG | Length | ||
) |
Definition at line 931 of file view.c.
Referenced by CcCopyRead(), CcCopyWrite(), CcMapData(), CcPerformReadAhead(), CcpPinData(), and CcZeroData().
Definition at line 308 of file view.c.
Referenced by CcRosTrimCache(), CcWriteBehind(), and NtSetSystemPowerState().
NTSTATUS CcRosFlushVacb | ( | _In_ PROS_VACB | Vacb, |
_Out_opt_ PIO_STATUS_BLOCK | Iosb | ||
) |
Definition at line 162 of file view.c.
Referenced by CcFlushCache(), and CcRosFlushDirtyPages().
Definition at line 737 of file view.c.
Referenced by CcRosCreateVacb(), and CcWriteBehind().
NTSTATUS CcRosGetVacb | ( | PROS_SHARED_CACHE_MAP | SharedCacheMap, |
LONGLONG | FileOffset, | ||
PROS_VACB * | Vacb | ||
) |
Definition at line 978 of file view.c.
Referenced by CcCopyRead(), CcCopyWrite(), CcMapData(), CcpPinData(), CcRosRequestVacb(), and CcZeroData().
NTSTATUS CcRosInitializeFileCache | ( | PFILE_OBJECT | FileObject, |
PCC_FILE_SIZES | FileSizes, | ||
BOOLEAN | PinAccess, | ||
PCACHE_MANAGER_CALLBACKS | CallBacks, | ||
PVOID | LazyWriterContext | ||
) |
Definition at line 1286 of file view.c.
Referenced by CcInitializeCacheMap().
Referenced by CcRosVacbDecRefCount().
PROS_VACB CcRosLookupVacb | ( | PROS_SHARED_CACHE_MAP | SharedCacheMap, |
LONGLONG | FileOffset | ||
) |
Definition at line 623 of file view.c.
Referenced by CcFlushCache(), and CcRosGetVacb().
Definition at line 666 of file view.c.
Referenced by CcRosFlushVacb(), CcRosReleaseVacb(), and CcSetDirtyPinnedData().
VOID CcRosReferenceCache | ( | PFILE_OBJECT | FileObject | ) |
NTSTATUS CcRosReleaseFileCache | ( | PFILE_OBJECT | FileObject | ) |
Definition at line 1230 of file view.c.
Referenced by CcRosInitializeFileCache(), and CcUninitializeCacheMap().
NTSTATUS CcRosReleaseVacb | ( | PROS_SHARED_CACHE_MAP | SharedCacheMap, |
PROS_VACB | Vacb, | ||
BOOLEAN | Dirty, | ||
BOOLEAN | Mapped | ||
) |
Definition at line 591 of file view.c.
Referenced by CcCopyRead(), CcCopyWrite(), CcFlushCache(), CcMapData(), CcpDereferenceBcb(), CcPerformReadAhead(), CcpGetAppropriateBcb(), CcpPinData(), CcUnpinRepinnedBcb(), and CcZeroData().
NTSTATUS CcRosRequestVacb | ( | PROS_SHARED_CACHE_MAP | SharedCacheMap, |
LONGLONG | FileOffset, | ||
PROS_VACB * | Vacb | ||
) |
Definition at line 1029 of file view.c.
Referenced by CcPerformReadAhead().
Definition at line 702 of file view.c.
Referenced by CcPurgeCacheSection(), CcRosDeleteFileCache(), and CcRosFlushVacb().
FORCEINLINE ULONG CcRosVacbDecRefCount | ( | PROS_VACB | vacb | ) |
Definition at line 499 of file cc.h.
Referenced by CcPurgeCacheSection(), CcRosCreateVacb(), CcRosDeleteFileCache(), CcRosFlushDirtyPages(), CcRosFreeOneUnusedVacb(), CcRosReleaseVacb(), CcRosTrimCache(), and CcRosUnmarkDirtyVacb().
VOID NTAPI CcScanDpc | ( | PKDPC | Dpc, |
PVOID | DeferredContext, | ||
PVOID | SystemArgument1, | ||
PVOID | SystemArgument2 | ||
) |
Definition at line 299 of file cachesub.c.
Referenced by PopGracefulShutdown().
FORCEINLINE BOOLEAN DoRangesIntersect | ( | _In_ LONGLONG | Offset1, |
_In_ LONGLONG | Length1, | ||
_In_ LONGLONG | Offset2, | ||
_In_ LONGLONG | Length2 | ||
) |
FORCEINLINE BOOLEAN IsPointInRange | ( | _In_ LONGLONG | Offset1, |
_In_ LONGLONG | Length1, | ||
_In_ LONGLONG | Point | ||
) |
Definition at line 462 of file cc.h.
Referenced by CcRosCreateVacb(), and CcRosLookupVacb().
|
extern |
Definition at line 44 of file copy.c.
Referenced by IoSynchronousPageWrite(), and QSI_DEF().
|
extern |
Definition at line 43 of file copy.c.
Referenced by IoSynchronousPageWrite(), and QSI_DEF().
|
extern |
Definition at line 57 of file view.c.
Referenced by CcCanIWrite(), CcDeferWrite(), CcInitView(), CcLazyWriteScan(), CcPostDeferredWrites(), and CcWorkerThread().
|
extern |
Definition at line 58 of file view.c.
Referenced by CcCanIWrite(), CcDeferWrite(), CcInitView(), and CcPostDeferredWrites().
|
extern |
Definition at line 55 of file view.c.
Referenced by CcCanIWrite(), and CcInitializeCacheManager().
|
extern |
Definition at line 39 of file lazywrite.c.
Referenced by CcInitializeCacheManager(), CcScheduleReadAhead(), and CcWorkerThread().
|
extern |
Definition at line 46 of file lazywrite.c.
Referenced by CcCanIWrite(), and CcScheduleLazyWriteScan().
|
extern |
Definition at line 41 of file lazywrite.c.
Referenced by CcInitializeCacheManager(), CcPostWorkQueue(), and CcWorkerThread().
|
extern |
Definition at line 21 of file lazywrite.c.
Referenced by CcWriteBehind(), and QSI_DEF().
|
extern |
Definition at line 20 of file lazywrite.c.
Referenced by CcWriteBehind(), and QSI_DEF().
|
extern |
Definition at line 29 of file pin.c.
Referenced by CcMapData(), and QSI_DEF().
|
extern |
Definition at line 28 of file pin.c.
Referenced by CcMapData(), and QSI_DEF().
|
extern |
Definition at line 48 of file lazywrite.c.
Referenced by CcInitializeCacheManager().
|
extern |
Definition at line 32 of file pin.c.
Referenced by CcPinMappedData(), and QSI_DEF().
|
extern |
Definition at line 31 of file pin.c.
Referenced by CcPinRead(), and QSI_DEF().
|
extern |
Definition at line 30 of file pin.c.
Referenced by CcPinRead(), and QSI_DEF().
|
extern |
Definition at line 42 of file lazywrite.c.
Referenced by CcInitializeCacheManager(), CcLazyWriteScan(), and CcWaitForCurrentLazyWriterActivity().
|
extern |
Definition at line 40 of file lazywrite.c.
Referenced by CcInitializeCacheManager(), CcLazyWriteScan(), CcScanDpc(), and CcWorkerThread().
|
extern |
Definition at line 56 of file view.c.
Referenced by CcCanIWrite(), CcLazyWriteScan(), CcRosMarkDirtyVacb(), CcRosUnmarkDirtyVacb(), CcWorkerThread(), and CcWriteBehind().
|
extern |
Definition at line 38 of file lazywrite.c.
Referenced by CcInitializeCacheManager(), CcLazyWriteScan(), CcScanDpc(), CcScheduleReadAhead(), CcWaitForCurrentLazyWriterActivity(), and CcWorkerThread().
|
extern |
Definition at line 41 of file view.c.
Referenced by CcInitView(), CcIsThereDirtyData(), CcRosFlushDirtyPages(), and CcRosMarkDirtyVacb().
|
extern |
Definition at line 37 of file lazywrite.c.
Referenced by CcDeferWrite(), CcInitializeCacheManager(), CcLazyWriteScan(), CcRosMarkDirtyVacb(), CcScanDpc(), CcScheduleLazyWriteScan(), and CcWaitForCurrentLazyWriterActivity().