DirectX 图形内核子系统

This article describes system-supplied, kernel-mode interfaces provided through the DirectX graphics kernel subsystem (Dxgkrnl.sys).

  • The display port driver is a part of Dxgkrnl.sys.
  • 内核模式显示微型端口驱动程序(KMD)由图形硬件供应商实现。

For descriptions of other functions implemented by Dxgkrnl, see articles such as:

VidPN 对象和接口

支持 Path-Independent 轮换

获取其他监视器目标模式

Dxgkrnl Interface

A KMD's DriverEntry function calls the operating system's DxgkInitialize function, which causes Dxgkrnl to be loaded and initialized.

Once loaded, Dxgkrnl.sys provides the KMD with pointers to its functions by passing a DXGKRNL_INTERFACE structure to the KMD's DxgkDdiStartDevice function. Dxgkrnl's function pointers have a DxgkCb prefix.

The DXGKRNL_INTERFACE structure also contains a handle to a particular display adapter. 显示端口驱动程序生成此句柄。 The KMD passes this handle as an argument each time it calls any of the functions in DXGKRNL_INTERFACE.

显示端口驱动程序接口

The KMD gets the display port driver's interfaces by calling Dxgkrnl's DxgkCbQueryServices function with a DXGK_SERVICES value that specifies the type of interface that the KMD wants. 显示端口驱动程序提供的服务包括 AGP(加速图形端口)服务、调试报表服务、定时操作服务等。

See also

Windows 显示驱动程序模型 (WDDM) 体系结构

初始化显示微型端口驱动程序