xend, passthrough: Small fix to find_all_the_multi_functions()

From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-10-26 12:20:07 +00:00
1 parent 02a4e58f0b
commit 8fb16359d5
1 file changed
+4 -1
+4 -1
View File
@@ -830,7 +830,10 @@ class PciDevice:
def find_all_the_multi_functions(self):
sysfs_mnt = find_sysfs_mnt()
parent = pci_dict_to_bdf_str(self.find_parent())
parentdict = self.find_parent()
if parentdict is None :
return [ self.name ]
parent = pci_dict_to_bdf_str(parentdict)
pci_names = os.popen('ls ' + sysfs_mnt + SYSFS_PCI_DEVS_PATH + '/' + \
parent + '/').read()
funcs = extract_the_exact_pci_names(pci_names)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.