DXGK_ACCESS_MODE enumeration (d3dkmddi.h)

DXGK_ACCESS_MODE describes the access mode that DxgkCbMapPhysicalMemory will provide when doing a mapping.

Syntax

typedef enum _DXGK_ACCESS_MODE {
  DXGK_ACCESS_MODE_KERNEL_MODE,
  DXGK_ACCESS_MODE_USER_MODE
} DXGK_ACCESS_MODE;

Constants

 
DXGK_ACCESS_MODE_KERNEL_MODE
The resulting mapping will be a kernel-mode virtual address. If the hPhysicalMemoryObject returned by DxgkCbCreatePhysicalMemoryObject is of type DXGK_PHYSICAL_MEMORY_TYPE_IO_SPACE, then AccessMode must be KernelMode.
DXGK_ACCESS_MODE_USER_MODE
The resulting mapping will be made in the context of the current process. The caller is expected to be in the context of the correct process during both map and unmap.

Remarks

DXGK_ACCESS_MODE is provided in the DXGKARGCB_MAP_PHYSICAL_MEMORY structure that is passed to DxgkCbMapPhysicalMemory.

Requirements

Requirement Value
Minimum supported server Windows Server 2022
Header d3dkmddi.h

See also

DXGKARGCB_MAP_PHYSICAL_MEMORY

DxgkCbCreatePhysicalMemoryObject

DxgkCbMapPhysicalMemory

DxgkCbUnmapPhysicalMemory