search for: has_iov

Displaying 1 result from an estimated 1 matches for "has_iov".

Did you mean: has_dev
2008 Sep 27
0
[PATCH 9/9] xen: add SR-IOV support to xm
...T + f = open(slot, ''w'') + f.write(dev) + f.close() + +def pciback_remove_device(dev): + sysfs_mnt = find_sysfs_mnt() + slot = sysfs_mnt + SYSFS_PCIBACK_PATH + SYSFS_PCIBACK_REMOVESLOT + f = open(slot, ''w'') + f.write(dev) + f.close() + +def has_iov(dev): + sysfs_mnt = find_sysfs_mnt() + path = sysfs_mnt + SYSFS_PCI_DEVS_PATH + dev + if not os.path.isdir(path): + print "Device %s doesn''t exist." % dev + return None + + path += SYSFS_PCI_IOV_ENTRY + if not os.path.isdir(path): + print &quot...