DXGKCB_FREEPAGESFROMMDL callback function (d3dkmddi.h)

DXGKCB_FREEPAGESFROMMDL frees all the physical pages described by a memory descriptor list (MDL) and allocated by the DXGKCB_ALLOCATEPAGESFORMDL routine.

Syntax

DXGKCB_FREEPAGESFROMMDL DxgkcbFreepagesfrommdl;

NTSTATUS DxgkcbFreepagesfrommdl(
  [in] IN_CONST_HANDLE hAdapter,
  [in] IN_CONST_PDXGKARGCB_FREEPAGESFROMMDL pFreePagesFromMdl
)
{...}

Parameters

[in] hAdapter

Handle to a display adapter.

[in] pFreePagesFromMdl

Pointer to a DXGKARGCB_FREEPAGESFROMMDL structure that contains a handle to the pages for the MDL.

Return value

Returns STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS error code.

Remarks

DXGKCB_XXX functions are implemented by Dxgkrnl. To use this callback function, set the members of DXGKARGCB_FREEPAGESFROMMDL and then calls DxgkCbFreePagesFromMdl via the DXGKRNL_INTERFACE.

See IOMMU-based GPU isolation for more information.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1803 (WDDM 2.4)
Header d3dkmddi.h
IRQL PASSIVE_LEVEL

See also

DXGKARGCB_FREEPAGESFROMMDL

DXGKCB_ALLOCATEPAGESFORMDL

DXGKRNL_INTERFACE