Bewerken

Delen via


CcMdlWriteAbort function (ntifs.h)

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

[in] FileObject

File object pointer that was passed to CcPrepareMdlWrite.

[in] MdlChain

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

Requirement Value
Minimum supported client Windows XP
Target Platform Universal
Header ntifs.h (include Ntifs.h)
Library NtosKrnl.lib
DLL NtosKrnl.exe
IRQL PASSIVE_LEVEL

See also

CcMdlWriteComplete

CcPrepareMdlWrite