ReactOS 0.4.15-dev-7907-g95bf896
mdlsup.c File Reference
#include <ntoskrnl.h>
#include "newcc.h"
#include <debug.h>
Include dependency graph for mdlsup.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

PMDL NTAPI CcpBuildCacheMdl (PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, PIO_STATUS_BLOCK IOSB)
 
VOID NTAPI CcMdlRead (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus)
 
VOID NTAPI CcMdlReadComplete (IN PFILE_OBJECT FileObject, IN PMDL MdlChain)
 
VOID NTAPI CcMdlReadComplete2 (IN PFILE_OBJECT FileObject, IN PMDL MdlChain)
 
VOID NTAPI CcPrepareMdlWrite (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, OUT PMDL *MdlChain, OUT PIO_STATUS_BLOCK IoStatus)
 
VOID NTAPI CcMdlWriteComplete (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PMDL MdlChain)
 
VOID NTAPI CcMdlWriteComplete2 (IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN PMDL MdlChain)
 
VOID NTAPI CcMdlWriteAbort (IN PFILE_OBJECT FileObject, IN PMDL MdlChain)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file mdlsup.c.

Function Documentation

◆ CcMdlRead()

VOID NTAPI CcMdlRead ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
OUT PMDL MdlChain,
OUT PIO_STATUS_BLOCK  IoStatus 
)

Definition at line 64 of file mdlsup.c.

69{
71}
PMDL NTAPI CcpBuildCacheMdl(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, PIO_STATUS_BLOCK IOSB)
Definition: mdlsup.c:22
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:160
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Outptr_ PMDL * MdlChain
Definition: fsrtlfuncs.h:49
__in UCHAR __in POWER_STATE __in_opt PVOID __in PIO_STATUS_BLOCK IoStatus
Definition: mxum.h:159
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
_In_ WDFREQUEST _In_ WDFFILEOBJECT FileObject
Definition: wdfdevice.h:550

Referenced by _Requires_lock_held_(), do_read(), Ext2ReadFile(), Ext2ReadVolume(), FsRtlMdlReadDev(), and RxCommonRead().

◆ CcMdlReadComplete()

VOID NTAPI CcMdlReadComplete ( IN PFILE_OBJECT  FileObject,
IN PMDL  MdlChain 
)

Definition at line 75 of file mdlsup.c.

77{
79}
#define IoFreeMdl
Definition: fxmdl.h:89

Referenced by _Dispatch_type_(), CdCompleteMdl(), Ext2ReadComplete(), FatCompleteMdl(), RxCompleteMdl(), and UDFMdlComplete().

◆ CcMdlReadComplete2()

VOID NTAPI CcMdlReadComplete2 ( IN PFILE_OBJECT  FileObject,
IN PMDL  MdlChain 
)

Definition at line 83 of file mdlsup.c.

85{
87}
#define UNIMPLEMENTED
Definition: debug.h:115

Referenced by FsRtlMdlReadCompleteDev().

◆ CcMdlWriteAbort()

VOID NTAPI CcMdlWriteAbort ( IN PFILE_OBJECT  FileObject,
IN PMDL  MdlChain 
)

Definition at line 120 of file mdlsup.c.

122{
123 ASSERT(FALSE);
125}
#define FALSE
Definition: types.h:117
#define ASSERT(a)
Definition: mode.c:44

Referenced by _Requires_lock_held_().

◆ CcMdlWriteComplete()

VOID NTAPI CcMdlWriteComplete ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN PMDL  MdlChain 
)

Definition at line 102 of file mdlsup.c.

105{
107}

Referenced by _Dispatch_type_(), Ext2WriteComplete(), FatCompleteMdl(), RxCompleteMdl(), and UDFMdlComplete().

◆ CcMdlWriteComplete2()

VOID NTAPI CcMdlWriteComplete2 ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN PMDL  MdlChain 
)

Definition at line 111 of file mdlsup.c.

114{
116}

Referenced by FsRtlMdlWriteCompleteDev().

◆ CcpBuildCacheMdl()

PMDL NTAPI CcpBuildCacheMdl ( PFILE_OBJECT  FileObject,
PLARGE_INTEGER  FileOffset,
ULONG  Length,
PIO_STATUS_BLOCK  IOSB 
)

Definition at line 22 of file mdlsup.c.

26{
27 PMDL Mdl;
29
32 Length,
34 &Bcb,
35 &Buffer);
36
37 if (!Result)
38 {
39 IOSB->Information = 0;
41 return NULL;
42 }
43
44 IOSB->Information = Length;
45 IOSB->Status = STATUS_SUCCESS;
46
48
49 if (!Mdl)
50 {
51 IOSB->Information = 0;
53 return NULL;
54 }
55
56 IOSB->Information = Length;
57 IOSB->Status = STATUS_SUCCESS;
58
59 return Mdl;
60}
unsigned char BOOLEAN
Definition: bufpool.h:45
#define NULL
Definition: types.h:112
IN PVCB IN VBO IN ULONG OUT PBCB * Bcb
Definition: fatprocs.h:414
#define IoAllocateMdl
Definition: fxmdl.h:88
#define PIN_WAIT
#define STATUS_NO_MEMORY
Definition: ntstatus.h:260
BOOLEAN NTAPI CcMapData(IN PFILE_OBJECT FileObject, IN PLARGE_INTEGER FileOffset, IN ULONG Length, IN ULONG Flags, OUT PVOID *BcbResult, OUT PVOID *Buffer)
Definition: pinsup.c:694
#define STATUS_SUCCESS
Definition: shellext.h:65
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
_In_ WDFDEVICE _In_ PVOID _In_opt_ PMDL Mdl
_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

Referenced by CcMdlRead(), and CcPrepareMdlWrite().

◆ CcPrepareMdlWrite()

VOID NTAPI CcPrepareMdlWrite ( IN PFILE_OBJECT  FileObject,
IN PLARGE_INTEGER  FileOffset,
IN ULONG  Length,
OUT PMDL MdlChain,
OUT PIO_STATUS_BLOCK  IoStatus 
)