DXGKARGCB_ALLOCATEPAGESFORMDL - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dkmddi.h

typedef struct _DXGKARGCB_ALLOCATEPAGESFORMDL {
  [in]  PHYSICAL_ADDRESS         LowAddress;
  [in]  PHYSICAL_ADDRESS         HighAddress;
  [in]  PHYSICAL_ADDRESS         SkipBytes;
  [in]  SIZE_T                   TotalBytes;
  [in]  DXGK_MEMORY_CACHING_TYPE CacheType;
  [in]  ULONG                    Flags;
  [out] HANDLE                   hMemoryHandle;
  [out] PMDL                     pMdl;
} DXGKARGCB_ALLOCATEPAGESFORMDL;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-d3dkmddi-_dxgkargcb_allocatepagesformdl)

DXGKARGCB_ALLOCATEPAGESFORMDL structure

Description

The DXGKARGCB_ALLOCATEPAGESFORMDL structure contains the arguments used in the DXGKCB_ALLOCATEPAGESFORMDL callback function, to allocate pages for a memory descriptor list (MDL).

Members

LowAddress [in]

Specifies the physical address of the start of the first address range from which the allocated pages can come.

HighAddress [in]

Specifies the physical address of the end of the first address range from which the allocated pages can come.

SkipBytes [in]

Specifies the number of bytes to skip from the start of the previous address range from which the allocated pages can come. SkipBytes must be an integer multiple of the virtual memory page size, in bytes.

TotalBytes [in]

Specifies the total number of bytes to allocate for the MDL.

CacheType [in]

Indicates the type of caching that is allowed for the requested memory.

Flags [in]

Specifies the flags for this operation. For more information, see MmAllocatePagesForMdlEx function.

hMemoryHandle [out]

A Dxgkrnl tracking handle for the allocation. This value should be passed to the corresponding DGXKCB_FREEPAGESFROMMDL callback function.

pMdl [out]

An MDL of non-paged memory guaranteed to be mapped to the IOMMU for its lifetime.

Remarks

See IOMMU-based GPU isolation for more information.

See also

DXGKCB_ALLOCATEPAGESFORMDL