// dispmprt.h
DXGKDDI_GETDEVICELOCATION DxgkddiGetdevicelocation;
VOID DxgkddiGetdevicelocation(
HANDLE Context,
DXGKARG_GETDEVICELOCATION *pArgs
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Returns the location of a Virtual Function on the PCI bus relative to the root partition. If an IHV implementation does not support SR-IOV, the location of the physical function is returned.
ContextThe miniport context that is returned by the driver in the DXGKDDI_SRIOV_INTERFACE structure.
pArgsPointer to the DXGKARG_GETDEVICELOCATION structure.
//Declaration
DXGKDDI_GETDEVICELOCATION DxgkddiGetdevicelocation;
// Definition
VOID DxgkddiGetdevicelocation
(
HANDLE Context
DXGKARG_GETDEVICELOCATION * pArgs
)
{...}
VF indices are incrementing, but the bus location is not directly tied to the index. This function retrieves the actual PCIe bus location of a virtual function.