mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-24 05:25:18 +00:00
pci: Use 'addr' instead of 'dev' for virPCIDeviceAddressPtr
The name 'dev' is more appropriate for virPCIDevicePtr.
This commit is contained in:
parent
c407365769
commit
90791fbf96
@ -2664,12 +2664,13 @@ virPCIGetSysfsFile(char *virPCIDeviceName, char **pci_sysfs_device_link)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr dev,
|
virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr addr,
|
||||||
char **pci_sysfs_device_link)
|
char **pci_sysfs_device_link)
|
||||||
{
|
{
|
||||||
if (virAsprintf(pci_sysfs_device_link,
|
if (virAsprintf(pci_sysfs_device_link,
|
||||||
PCI_SYSFS "devices/%04x:%02x:%02x.%x", dev->domain,
|
PCI_SYSFS "devices/%04x:%02x:%02x.%x",
|
||||||
dev->bus, dev->slot, dev->function) < 0)
|
addr->domain, addr->bus,
|
||||||
|
addr->slot, addr->function) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -159,7 +159,7 @@ virPCIDeviceListPtr virPCIDeviceGetIOMMUGroupList(virPCIDevicePtr dev);
|
|||||||
int virPCIDeviceAddressGetIOMMUGroupAddresses(virPCIDeviceAddressPtr devAddr,
|
int virPCIDeviceAddressGetIOMMUGroupAddresses(virPCIDeviceAddressPtr devAddr,
|
||||||
virPCIDeviceAddressPtr **iommuGroupDevices,
|
virPCIDeviceAddressPtr **iommuGroupDevices,
|
||||||
size_t *nIommuGroupDevices);
|
size_t *nIommuGroupDevices);
|
||||||
int virPCIDeviceAddressGetIOMMUGroupNum(virPCIDeviceAddressPtr dev);
|
int virPCIDeviceAddressGetIOMMUGroupNum(virPCIDeviceAddressPtr addr);
|
||||||
char *virPCIDeviceGetIOMMUGroupDev(virPCIDevicePtr dev);
|
char *virPCIDeviceGetIOMMUGroupDev(virPCIDevicePtr dev);
|
||||||
|
|
||||||
int virPCIDeviceIsAssignable(virPCIDevicePtr dev,
|
int virPCIDeviceIsAssignable(virPCIDevicePtr dev,
|
||||||
@ -180,7 +180,7 @@ int virPCIGetVirtualFunctionIndex(const char *pf_sysfs_device_link,
|
|||||||
const char *vf_sysfs_device_link,
|
const char *vf_sysfs_device_link,
|
||||||
int *vf_index);
|
int *vf_index);
|
||||||
|
|
||||||
int virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr dev,
|
int virPCIDeviceAddressGetSysfsFile(virPCIDeviceAddressPtr addr,
|
||||||
char **pci_sysfs_device_link);
|
char **pci_sysfs_device_link);
|
||||||
|
|
||||||
int virPCIGetNetName(char *device_link_sysfs_path, char **netname);
|
int virPCIGetNetName(char *device_link_sysfs_path, char **netname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user