// pcivirt.h
SRIOV_QUERY_LUID_VF SriovQueryLuidVf;
NTSTATUS SriovQueryLuidVf(
[in] PVOID Context,
[in] LUID Luid,
[out] PUSHORT VfIndex
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Gets the PCI Express SR-IOV Virtual Function (VF) given a unique identifier.
Context [in]A pointer to a driver-defined context.
Luid [in]The local unique identifier of the VF whose index is being retrieved.
VfIndex [out]A zero-based index of the VF that is being queried.
Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS error code.
SRIOV_QUERY_LUID_VF SriovQueryLuidVf;
NTSTATUS SriovQueryLuidVf(
_In_ PVOID Context,
_In_ LUID Luid,
_Out_ USHORT VfIndex
)
{ ... }
typedef SRIOV_QUERY_LUID_VF *PSRIOV_QUERY_LUID_VF;
This callback function is implemented by the physical function (PF) driver. It is invoked when the system wants to get the identifier of a specific virtual function.
The PF driver registers its implementation by setting the QueryLuidVf member of the SRIOV_DEVICE_INTERFACE_STANDARD_2, configuring a WDF_QUERY_INTERFACE_CONFIG structure, and calling WdfDeviceAddQueryInterface.