SRIOV_RESET_FUNCTION callback function (pcivirt.h)
Resets the specified PCI Express SR-IOV Virtual Function (VF).
Syntax
SRIOV_RESET_FUNCTION SriovResetFunction;
NTSTATUS SriovResetFunction(
[in] PVOID Context,
[in] USHORT VfIndex
)
{...}
Parameters
[in] Context
A pointer to a driver-defined context.
[in] VfIndex
A zero-based index of the VF that is to be reset.
Return value
Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS error code.
Remarks
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 |
Minimum supported server | Windows Server 2016 |
Target Platform | Windows |
Header | pcivirt.h |
IRQL | PASSIVE_LEVEL |