ReactOS  0.4.14-dev-384-g5b37caa
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 
20 VOID
21 NTAPI
23  IN BOOLEAN DisableReadAhead,
24  IN BOOLEAN DisableWriteBehind)
25 {
27 }
28 
29 VOID
30 NTAPI
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 
42 NTAPI
44  IN PDIRTY_PAGE_ROUTINE DirtyPageRoutine,
47 {
48  LARGE_INTEGER Result = {{0}};
50  return Result;
51 }
52 
53 BOOLEAN
54 NTAPI
56 {
58  return FALSE;
59 }
60 
62 NTAPI
64  OUT OPTIONAL PLARGE_INTEGER OldestLsn)
65 {
66  LARGE_INTEGER Result = {{0}};
68  return Result;
69 }
70 
71 /* EOF */
VOID(NTAPI * PFLUSH_TO_LSN)(_In_ PVOID LogHandle, _In_ LARGE_INTEGER Lsn)
Definition: cctypes.h:61
#define IN
Definition: typedefs.h:38
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 CcSetLogHandleForFile(IN PFILE_OBJECT FileObject, IN PVOID LogHandle, IN PFLUSH_TO_LSN FlushToLsnRoutine)
Definition: logsup.c:31
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
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned char BOOLEAN
VOID NTAPI CcSetAdditionalCacheAttributes(IN PFILE_OBJECT FileObject, IN BOOLEAN DisableReadAhead, IN BOOLEAN DisableWriteBehind)
Definition: logsup.c:22
_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:426
_Inout_ PFILE_OBJECT FileObject
Definition: cdprocs.h:593
PVOID LogHandle
Definition: newcc.h:36
* PFILE_OBJECT
Definition: iotypes.h:1955
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT _In_ PTDI_PNP_CONTEXT Context2
Definition: tdikrnl.h:1094
LARGE_INTEGER NTAPI CcGetDirtyPages(IN PVOID LogHandle, IN PDIRTY_PAGE_ROUTINE DirtyPageRoutine, IN PVOID Context1, IN PVOID Context2)
Definition: logsup.c:43
_In_ PNET_PNP_EVENT _In_ PTDI_PNP_CONTEXT Context1
Definition: tdikrnl.h:1094
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
Definition: iotypes.h:166
#define OUT
Definition: typedefs.h:39
_In_ UINT _Out_ PNDIS_HANDLE LogHandle
Definition: ndis.h:5381
PFLUSH_TO_LSN FlushToLsn
Definition: newcc.h:37
IN OUT PVCB IN PDEVICE_OBJECT IN PVPB Vpb
Definition: fatprocs.h:1664
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68