// pcivirt.h
SRIOV_WRITE_CONFIG SriovWriteConfig;
NTSTATUS SriovWriteConfig(
[in] PVOID Context,
[in] const VOID *Data,
[in] USHORT VfIndex,
[in] ULONG Offset,
[in] ULONG Length
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Writes configuration data to a PCI Express SR-IOV Virtual Function (VF).
Context [in]A pointer to a driver-defined context.
Data [in]A pointer to buffer that contains the data to be written to the configuration space.
VfIndex [in]A zero-based index of the VF to which this write operation applies.
Offset [in]An offset in bytes to the start of the VF’s configuration space where the write begins.
Length [in]The length, in bytes, of the data to write to the configuration space.
Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS error code.
SRIOV_WRITE_CONFIG SriovWriteConfig;
NTSTATUS SriovWriteConfig(
_In_ PVOID Context,
_In_ const VOID *Data,
_In_ USHORT VfIndex,
_In_ ULONG Offset,
_In_ ULONG Length
)
{ ... }
typedef SRIOV_WRITE_CONFIG *PSRIOV_WRITE_CONFIG;
This callback function is implemented by the physical function (PF) driver. It is invoked when the system wants to write to the configuration space of a specific virtual function.
The PF driver registers its implementation by setting the WriteVfConfig member of the SRIOV_DEVICE_INTERFACE_STANDARD, configuring a WDF_QUERY_INTERFACE_CONFIG structure, and calling WdfDeviceAddQueryInterface.