mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
util: make virPCIGetDeviceAddressFromSysfsLink() public
This function will be useful in virnetdev.c, so promote it from static.
This commit is contained in:
parent
d6ee56d723
commit
9a238c16b3
@ -2243,6 +2243,7 @@ virPCIDeviceSetUsedBy;
|
||||
virPCIDeviceUnbind;
|
||||
virPCIDeviceWaitForCleanup;
|
||||
virPCIEDeviceInfoFree;
|
||||
virPCIGetDeviceAddressFromSysfsLink;
|
||||
virPCIGetHeaderType;
|
||||
virPCIGetNetName;
|
||||
virPCIGetPhysicalFunction;
|
||||
|
@ -2594,7 +2594,7 @@ virPCIDeviceAddressIsEqual(virPCIDeviceAddressPtr bdf1,
|
||||
(bdf1->function == bdf2->function));
|
||||
}
|
||||
|
||||
static virPCIDeviceAddressPtr
|
||||
virPCIDeviceAddressPtr
|
||||
virPCIGetDeviceAddressFromSysfsLink(const char *device_link)
|
||||
{
|
||||
virPCIDeviceAddressPtr bdf = NULL;
|
||||
@ -2923,6 +2923,14 @@ virPCIGetVirtualFunctionInfo(const char *vf_sysfs_device_path,
|
||||
#else
|
||||
static const char *unsupported = N_("not supported on non-linux platforms");
|
||||
|
||||
virPCIDeviceAddressPtr
|
||||
virPCIGetDeviceAddressFromSysfsLink(const char *device_link ATTRIBUTE_UNUSED)
|
||||
{
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _(unsupported));
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
virPCIGetPhysicalFunction(const char *vf_sysfs_path ATTRIBUTE_UNUSED,
|
||||
virPCIDeviceAddressPtr *pf ATTRIBUTE_UNUSED)
|
||||
|
@ -186,6 +186,9 @@ int virPCIDeviceIsAssignable(virPCIDevicePtr dev,
|
||||
int strict_acs_check);
|
||||
int virPCIDeviceWaitForCleanup(virPCIDevicePtr dev, const char *matcher);
|
||||
|
||||
virPCIDeviceAddressPtr
|
||||
virPCIGetDeviceAddressFromSysfsLink(const char *device_link);
|
||||
|
||||
int virPCIGetPhysicalFunction(const char *vf_sysfs_path,
|
||||
virPCIDeviceAddressPtr *pf);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user