mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Bo's ntifs.h + ReactOS extensions (untested).
svn path=/trunk/; revision=582
This commit is contained in:
parent
86b93a6ac8
commit
fad2f584e9
1 changed files with 67 additions and 0 deletions
|
@ -1621,4 +1621,71 @@ ZwUnlockFile (
|
|||
}
|
||||
#endif
|
||||
|
||||
/* --- BEGIN - REACTOS ONLY --- */
|
||||
|
||||
typedef struct _BCB
|
||||
{
|
||||
LIST_ENTRY CacheSegmentListHead;
|
||||
PFILE_OBJECT FileObject;
|
||||
KSPIN_LOCK BcbLock;
|
||||
|
||||
} BCB, *PBCB;
|
||||
|
||||
#define CACHE_SEGMENT_SIZE (0x1000)
|
||||
|
||||
struct _MEMORY_AREA;
|
||||
|
||||
typedef struct _CACHE_SEGMENT
|
||||
{
|
||||
PVOID BaseAddress;
|
||||
struct _MEMORY_AREA * MemoryArea;
|
||||
BOOLEAN Valid;
|
||||
LIST_ENTRY ListEntry;
|
||||
ULONG FileOffset;
|
||||
KEVENT Lock;
|
||||
ULONG ReferenceCount;
|
||||
PBCB Bcb;
|
||||
|
||||
} CACHE_SEGMENT, *PCACHE_SEGMENT;
|
||||
|
||||
|
||||
NTSTATUS
|
||||
CcFlushCachePage (
|
||||
PCACHE_SEGMENT CacheSeg
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
CcReleaseCachePage (
|
||||
PBCB Bcb,
|
||||
PCACHE_SEGMENT CacheSeg,
|
||||
BOOLEAN Valid
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
CcRequestCachePage (
|
||||
PBCB Bcb,
|
||||
ULONG FileOffset,
|
||||
PVOID * BaseAddress,
|
||||
PBOOLEAN UptoDate,
|
||||
PCACHE_SEGMENT * CacheSeg
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
CcInitializeFileCache (
|
||||
PFILE_OBJECT FileObject,
|
||||
PBCB * Bcb
|
||||
);
|
||||
|
||||
NTSTATUS
|
||||
CcReleaseFileCache (
|
||||
PFILE_OBJECT FileObject,
|
||||
PBCB Bcb
|
||||
);
|
||||
|
||||
#include <ddk/cctypes.h>
|
||||
|
||||
#include <ddk/ccfuncs.h>
|
||||
|
||||
/* --- END - REACTOS ONLY --- */
|
||||
|
||||
#endif // _NTIFS_
|
||||
|
|
Loading…
Reference in a new issue