ReactOS  0.4.14-dev-583-g2a1ba2c
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 }
IN PLARGE_INTEGER IN ULONG IN BOOLEAN IN ULONG IN BOOLEAN OUT PIO_STATUS_BLOCK IoStatus
Definition: fatprocs.h:2650
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Outptr_ PMDL * MdlChain
Definition: fsrtlfuncs.h:46
PMDL NTAPI CcpBuildCacheMdl(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, PIO_STATUS_BLOCK IOSB)
Definition: mdlsup.c:22
_Inout_ PFILE_OBJECT FileObject
Definition: cdprocs.h:593
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:151

Referenced by _Requires_lock_held_(), do_read(), Ext2ReadFile(), Ext2ReadVolume(), FFSReadFile(), FFSReadVolume(), FsRtlMdlReadDev(), RfsdReadFile(), RfsdReadVolume(), and RxCommonRead().

◆ CcMdlReadComplete()

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

Definition at line 75 of file mdlsup.c.

77 {
79 }
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Outptr_ PMDL * MdlChain
Definition: fsrtlfuncs.h:46
VOID NTAPI IoFreeMdl(PMDL Mdl)
Definition: iomdl.c:146

Referenced by _Dispatch_type_(), CdCompleteMdl(), Ext2ReadComplete(), FatCompleteMdl(), FFSReadComplete(), RfsdReadComplete(), 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:114

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 }
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Outptr_ PMDL * MdlChain
Definition: fsrtlfuncs.h:46
VOID NTAPI IoFreeMdl(PMDL Mdl)
Definition: iomdl.c:146
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)

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 }
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Outptr_ PMDL * MdlChain
Definition: fsrtlfuncs.h:46
VOID NTAPI IoFreeMdl(PMDL Mdl)
Definition: iomdl.c:146

Referenced by _Dispatch_type_(), Ext2WriteComplete(), FatCompleteMdl(), FFSWriteComplete(), RfsdWriteComplete(), 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 }
#define UNIMPLEMENTED
Definition: debug.h:114

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;
28  PVOID Bcb, Buffer;
29 
31  FileOffset,
32  Length,
33  PIN_WAIT,
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;
52  IOSB->Status = STATUS_NO_MEMORY;
53  return NULL;
54  }
55 
56  IOSB->Information = Length;
57  IOSB->Status = STATUS_SUCCESS;
58 
59  return Mdl;
60 }
IN PVCB IN VBO IN ULONG OUT PBCB * Bcb
Definition: fatprocs.h:402
#define PIN_WAIT
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
_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
Definition: bufpool.h:45
_Inout_ PFILE_OBJECT FileObject
Definition: cdprocs.h:593
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
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
PMDL NTAPI IoAllocateMdl(IN PVOID VirtualAddress, IN ULONG Length, IN BOOLEAN SecondaryBuffer, IN BOOLEAN ChargeQuota, IN PIRP Irp)
Definition: iomdl.c:22
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:151
#define STATUS_NO_MEMORY
Definition: ntstatus.h:246
IN BOOLEAN OUT PSTR Buffer
Definition: progress.h:34
return STATUS_SUCCESS
Definition: btrfs.c:2938

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 
)

Definition at line 91 of file mdlsup.c.

96 {
98 }
IN PLARGE_INTEGER IN ULONG IN BOOLEAN IN ULONG IN BOOLEAN OUT PIO_STATUS_BLOCK IoStatus
Definition: fatprocs.h:2650
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ ULONG _In_ ULONG _Outptr_ PMDL * MdlChain
Definition: fsrtlfuncs.h:46
PMDL NTAPI CcpBuildCacheMdl(PFILE_OBJECT FileObject, PLARGE_INTEGER FileOffset, ULONG Length, PIO_STATUS_BLOCK IOSB)
Definition: mdlsup.c:22
_Inout_ PFILE_OBJECT FileObject
Definition: cdprocs.h:593
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
_In_ PFCB _In_ LONGLONG FileOffset
Definition: cdprocs.h:151

Referenced by _Requires_lock_held_(), Ext2WriteFile(), Ext2WriteVolume(), FFSWriteFile(), FFSWriteVolume(), FsRtlPrepareMdlWriteDev(), RfsdWriteFile(), RfsdWriteVolume(), RxCommonWrite(), and write_file2().