// pcivirt.h
SRIOV_QUERY_PROBED_BARS SriovQueryProbedBars;
NTSTATUS SriovQueryProbedBars(
[in] PVOID Context,
[out] PULONG BaseRegisterValues
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Queries the data read from the physical function's (PF) base address registers (BARs) if the value -1 were written to them first.
Context [in]A pointer to a driver-defined context.
BaseRegisterValues [out]A pointer to an array of variables that is bounded by the number of BARs in a PCI device.
Return STATUS_SUCCESS if the operation succeeds. Otherwise, return an appropriate NTSTATUS error code.
SRIOV_QUERY_PROBED_BARS SriovQueryProbedBars;
NTSTATUS SriovQueryProbedBars(
_In_ PVOID Context,
_Out_ PULONG BaseRegisterValues
)
{ ... }
typedef SRIOV_QUERY_PROBED_BARS *PSRIOV_QUERY_PROBED_BARS;
This callback function is implemented by the physical function (PF) driver. It is invoked when the system wants to get base address register values.
The PF driver registers its implementation by setting the QueryProbedBars member of the SRIOV_DEVICE_INTERFACE_STANDARD, configuring a WDF_QUERY_INTERFACE_CONFIG structure, and calling WdfDeviceAddQueryInterface.