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:
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(加速图形端口)服务、调试报表服务、定时操作服务等。