virPCIGetMdevTypes;
virPCIGetNetName;
virPCIGetPhysicalFunction;
-virPCIGetSysfsFile;
virPCIGetVirtualFunctionIndex;
virPCIGetVirtualFunctionInfo;
virPCIGetVirtualFunctions;
* Returns a path to the PCI sysfs file given the BDF of the PCI function
*/
-int
-virPCIGetSysfsFile(char *virPCIDeviceName, char **pci_sysfs_device_link)
-{
- *pci_sysfs_device_link = g_strdup_printf(PCI_SYSFS "devices/%s",
- virPCIDeviceName);
- return 0;
-}
-
int
virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr addr,
char **pci_sysfs_device_link)
}
-int
-virPCIGetSysfsFile(char *virPCIDeviceName G_GNUC_UNUSED,
- char **pci_sysfs_device_link G_GNUC_UNUSED)
-{
- virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
- return -1;
-}
int
virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr dev G_GNUC_UNUSED,
char *physPortID,
char **netname);
-int virPCIGetSysfsFile(char *virPCIDeviceName,
- char **pci_sysfs_device_link)
- G_GNUC_WARN_UNUSED_RESULT;
-
bool virPCIDeviceAddressIsValid(virPCIDeviceAddressPtr addr,
bool report);
bool virPCIDeviceAddressIsEmpty(const virPCIDeviceAddress *addr);