ReactOS
0.4.15-dev-5608-gafb953a
|
Go to the source code of this file.
Classes | |
struct | _NOCC_BCB |
struct | _NOCC_CACHE_MAP |
Macros | |
#define | CcpFlushCache(M, F, L, I, D) _CcpFlushCache(M,F,L,I,D,__FILE__,__LINE__) |
#define | KEBUGCHECKCC |
#define | CACHE_SINGLE_FILE_MAX (16) |
#define | CACHE_OVERALL_SIZE (32 * 1024 * 1024) |
#define | CACHE_STRIPE VACB_MAPPING_GRANULARITY |
#define | CACHE_SHIFT 18 |
#define | CACHE_NUM_SECTIONS (CACHE_OVERALL_SIZE / CACHE_STRIPE) |
#define | CACHE_ROUND_UP(x) (((x) + (CACHE_STRIPE-1)) & ~(CACHE_STRIPE-1)) |
#define | CACHE_ROUND_DOWN(x) ((x) & ~(CACHE_STRIPE-1)) |
#define | INVALID_CACHE ((ULONG)~0) |
#define | CcpLock() _CcpLock(__FILE__,__LINE__) |
#define | CcpUnlock() _CcpUnlock(__FILE__,__LINE__) |
Typedefs | |
typedef struct _NOCC_BCB | NOCC_BCB |
typedef struct _NOCC_BCB * | PNOCC_BCB |
typedef struct _NOCC_CACHE_MAP | NOCC_CACHE_MAP |
typedef struct _NOCC_CACHE_MAP * | PNOCC_CACHE_MAP |
Variables | |
NOCC_BCB | CcCacheSections [CACHE_NUM_SECTIONS] |
PRTL_BITMAP | CcCacheBitmap |
FAST_MUTEX | CcMutex |
KEVENT | CcDeleteEvent |
ULONG | CcCacheClockHand |
LIST_ENTRY | CcPendingUnmap |
KEVENT | CcpLazyWriteEvent |
#define CACHE_NUM_SECTIONS (CACHE_OVERALL_SIZE / CACHE_STRIPE) |
#define CACHE_ROUND_UP | ( | x | ) | (((x) + (CACHE_STRIPE-1)) & ~(CACHE_STRIPE-1)) |
#define CACHE_STRIPE VACB_MAPPING_GRANULARITY |
#define CcpUnlock | ( | ) | _CcpUnlock(__FILE__,__LINE__) |
#define KEBUGCHECKCC |
typedef struct _NOCC_CACHE_MAP NOCC_CACHE_MAP |
typedef struct _NOCC_CACHE_MAP * PNOCC_CACHE_MAP |
VOID NTAPI _CcpFlushCache | ( | IN PNOCC_CACHE_MAP | Map, |
IN OPTIONAL PLARGE_INTEGER | FileOffset, | ||
IN ULONG | Length, | ||
OUT OPTIONAL PIO_STATUS_BLOCK | IoStatus, | ||
BOOLEAN | Delete, | ||
const char * | File, | ||
int | Line | ||
) |
Definition at line 142 of file cachesub.c.
BOOLEAN NTAPI CcFlushImageSection | ( | PSECTION_OBJECT_POINTERS | SectionObjectPointer, |
MMFLUSH_TYPE | FlushType | ||
) |
Definition at line 245 of file cachesub.c.
BOOLEAN NTAPI CcGetFileSizes | ( | PFILE_OBJECT | FileObject, |
PCC_FILE_SIZES | FileSizes | ||
) |
Definition at line 56 of file copy.c.
Referenced by CcInitView().
Definition at line 1355 of file view.c.
Referenced by CcInitializeCacheManager().
VOID NTAPI CcMdlWriteComplete2 | ( | IN PFILE_OBJECT | FileObject, |
IN PLARGE_INTEGER | FileOffset, | ||
IN PMDL | MdlChain | ||
) |
BOOLEAN NTAPI CcpAcquireFileLock | ( | PNOCC_CACHE_MAP | Map | ) |
Definition at line 131 of file fssup.c.
ULONG NTAPI CcpCountCacheSections | ( | PNOCC_CACHE_MAP | Map | ) |
Definition at line 213 of file pinsup.c.
Referenced by _CcpFlushCache(), CcpAllocateCacheSections(), and CcUninitializeCacheMap().
Definition at line 114 of file fssup.c.
BOOLEAN NTAPI CcpMapData | ( | IN PFILE_OBJECT | FileObject, |
IN PLARGE_INTEGER | FileOffset, | ||
IN ULONG | Length, | ||
IN ULONG | Flags, | ||
OUT PVOID * | BcbResult, | ||
OUT PVOID * | Buffer | ||
) |
Definition at line 465 of file pinsup.c.
Referenced by CcMapData(), and CcPinMappedData().
BOOLEAN NTAPI CcpPinMappedData | ( | IN PNOCC_CACHE_MAP | Map, |
IN PLARGE_INTEGER | FileOffset, | ||
IN ULONG | Length, | ||
IN ULONG | Flags, | ||
IN OUT PVOID * | Bcb | ||
) |
Definition at line 730 of file pinsup.c.
Referenced by CcPinMappedData().
Definition at line 368 of file pinsup.c.
Referenced by _CcpFlushCache(), CcMapData(), CcpPinMappedData(), CcRemapBcb(), CcRepinBcb(), CcSetBcbOwnerPointer(), and CcZeroData().
VOID NTAPI CcpReleaseFileLock | ( | PNOCC_CACHE_MAP | Map | ) |
Definition at line 139 of file fssup.c.
Referenced by _CcpFlushCache(), and CcZeroData().
Definition at line 299 of file cachesub.c.
ULONG MmGetReferenceCountPageWithoutLock | ( | PFN_NUMBER | Page | ) |
Definition at line 165 of file newcc.h.
Referenced by MiFreeSegmentPage(), MmFinalizeSectionPageOut(), and MmpPageOutPhysicalAddress().
PRTL_BITMAP CcCacheBitmap |
Definition at line 100 of file pinsup.c.
Referenced by CcInitializeCacheManager(), CcpAllocateCacheSections(), CcpMapData(), CcpReferenceCache(), CcpReferenceCacheExclusive(), CcpUnpinData(), CcRemapBcb(), and CcRepinBcb().
ULONG CcCacheClockHand |
Definition at line 104 of file pinsup.c.
Referenced by CcpAllocateCacheSections().
NOCC_BCB CcCacheSections[CACHE_NUM_SECTIONS] |
Definition at line 98 of file pinsup.c.
Referenced by _CcpFlushCache(), CcCopyWrite(), CcGetFileObjectFromBcb(), CcInitializeCacheManager(), CcMapData(), CcpAllocateCacheSections(), CcpDereferenceCache(), CcpFindMatchingMap(), CcpMapData(), CcpMarkForExclusive(), CcpPinMappedData(), CcpReferenceCache(), CcpReferenceCacheExclusive(), CcPreparePinWrite(), CcpUnpinData(), CcRemapBcb(), CcRepinBcb(), CcSetBcbOwnerPointer(), CcShutdownSystem(), CcUninitializeCacheMap(), CcUnpinData(), CcUnpinRepinnedBcb(), and CcZeroData().
KEVENT CcDeleteEvent |
Definition at line 102 of file pinsup.c.
Referenced by CcInitializeCacheManager(), CcpMapData(), and CcpUnpinData().
FAST_MUTEX CcMutex |
Definition at line 101 of file pinsup.c.
Referenced by _CcpLock(), _CcpUnlock(), and CcInitializeCacheManager().
LIST_ENTRY CcPendingUnmap |
KEVENT CcpLazyWriteEvent |
Definition at line 18 of file lazyrite.c.