CcMdlWriteAbort routine

The CcMdlWriteAbort routine frees memory descriptor lists (MDL) created by an earlier call to CcPrepareMdlWrite.

Syntax


VOID CcMdlWriteAbort(
  _In_ PFILE_OBJECT FileObject,
  _In_ PMDL         MdlChain
);

Parameters

FileObject [in]

File object pointer that was passed to CcPrepareMdlWrite.

MdlChain [in]

Address of the MDL chain returned by CcPrepareMdlWrite.

Return value

None

Remarks

File systems call CcMdlWriteAbort to free the memory descriptor lists (MDL) created by an earlier call to CcPrepareMdlWrite for a cached file. All physical pages that were locked down are unlocked. Any pages that were mapped are unmapped.

File systems normally call CcMdlWriteAbort only in cases where, after a successful call to CcPrepareMdlWrite, it is necessary to abort or fail the subsequent MDL write operation.

Unlike CcMdlWriteComplete, CcMdlWriteAbort does not cause any data to be written to the cached file.

Requirements

Target platform

Universal

Version

Available on Microsoft Windows XP and later.

Header

Ntifs.h (include Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

PASSIVE_LEVEL

See also

CcMdlWriteComplete
CcPrepareMdlWrite

 

 

Send comments about this topic to Microsoft

Show: