SRIOV_QUERY_PROBED_BARS callback function (pcivirt.h)
Queries the data read from the physical function's (PF) base address registers (BARs) if the value -1 were written to them first.
Syntax
SRIOV_QUERY_PROBED_BARS SriovQueryProbedBars;
NTSTATUS SriovQueryProbedBars(
[in] PVOID Context,
[out] PULONG BaseRegisterValues
)
{...}
Parameters
[in] Context
A pointer to a driver-defined context.
[out] BaseRegisterValues
A pointer to an array of variables that is bounded by the number of BARs in a PCI device.
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 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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 |
Minimum supported server | Windows Server 2016 |
Target Platform | Windows |
Header | pcivirt.h |
IRQL | PASSIVE_LEVEL |