ReactOS 0.4.15-dev-7931-gfd331f1
logsup.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS Kernel
4 * FILE: ntoskrnl/cache/logsup.c
5 * PURPOSE: Logging and configuration routines
6 * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7 */
8
9/* INCLUDES *******************************************************************/
10
11#include <ntoskrnl.h>
12#include "newcc.h"
13//#define NDEBUG
14#include <debug.h>
15
16/* GLOBALS ********************************************************************/
17
18/* FUNCTIONS ******************************************************************/
19
20VOID
23 IN BOOLEAN DisableReadAhead,
24 IN BOOLEAN DisableWriteBehind)
25{
27}
28
29VOID
33 IN PFLUSH_TO_LSN FlushToLsnRoutine)
34{
35 PNOCC_CACHE_MAP Map = FileObject->SectionObjectPointer->SharedCacheMap;
36 if (!Map) return;
37 Map->LogHandle = LogHandle;
38 Map->FlushToLsn = FlushToLsnRoutine;
39}
40
44 IN PDIRTY_PAGE_ROUTINE DirtyPageRoutine,
47{
48 LARGE_INTEGER Result = {{0}};
50 return Result;
51}
52
56{
58 return FALSE;
59}
60
64 OUT OPTIONAL PLARGE_INTEGER OldestLsn)
65{
66 LARGE_INTEGER Result = {{0}};
68 return Result;
69}
70
71/* EOF */
unsigned char BOOLEAN
#define FALSE
Definition: types.h:117
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
IN OUT PVCB IN PDEVICE_OBJECT IN PVPB Vpb
Definition: fatprocs.h:1675
VOID NTAPI CcSetLogHandleForFile(IN PFILE_OBJECT FileObject, IN PVOID LogHandle, IN PFLUSH_TO_LSN FlushToLsnRoutine)
Definition: logsup.c:31
LARGE_INTEGER NTAPI CcGetDirtyPages(IN PVOID LogHandle, IN PDIRTY_PAGE_ROUTINE DirtyPageRoutine, IN PVOID Context1, IN PVOID Context2)
Definition: logsup.c:43
LARGE_INTEGER NTAPI CcGetLsnForFileObject(IN PFILE_OBJECT FileObject, OUT OPTIONAL PLARGE_INTEGER OldestLsn)
Definition: logsup.c:63
BOOLEAN NTAPI CcIsThereDirtyData(IN PVPB Vpb)
Definition: logsup.c:55
VOID NTAPI CcSetAdditionalCacheAttributes(IN PFILE_OBJECT FileObject, IN BOOLEAN DisableReadAhead, IN BOOLEAN DisableWriteBehind)
Definition: logsup.c:22
_In_ UINT _Out_ PNDIS_HANDLE LogHandle
Definition: ndis.h:5382
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
PVOID LogHandle
Definition: newcc.h:36
PFLUSH_TO_LSN FlushToLsn
Definition: newcc.h:37
Definition: iotypes.h:189
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT Context1
Definition: tdikrnl.h:1095
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT _In_ PTDI_PNP_CONTEXT Context2
Definition: tdikrnl.h:1096
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:550
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409
VOID(NTAPI * 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)
Definition: cctypes.h:51
VOID(NTAPI * PFLUSH_TO_LSN)(_In_ PVOID LogHandle, _In_ LARGE_INTEGER Lsn)
Definition: cctypes.h:61
* PFILE_OBJECT
Definition: iotypes.h:1998