// pcivirt.h
SRIOV_RESET_FUNCTION SriovResetFunction;
NTSTATUS SriovResetFunction(
[in] PVOID Context,
[in] USHORT VfIndex
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Resets the specified PCI Express SR-IOV Virtual Function (VF).
Context [in]A pointer to a driver-defined context.
VfIndex [in]A zero-based index of the VF that is to be reset.
Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS error code.
SRIOV_RESET_FUNCTION SriovResetFunction;
NTSTATUS SriovResetFunction(
_In_ PVOID Context,
_In_ USHORT VfIndex
)
{ ... }
typedef SRIOV_RESET_FUNCTION *PSRIOV_RESET_FUNCTION;
This callback function is implemented by the physical function (PF) driver. It is invoked when the system wants to reset a specific virtual function.
The PF driver registers its implementation by setting the ResetVf member of the SRIOV_DEVICE_INTERFACE_STANDARD, configuring a WDF_QUERY_INTERFACE_CONFIG structure, and calling WdfDeviceAddQueryInterface.