MCPcopy Create free account
hub / github.com/F-Stack/f-stack / unbind_all

Function unbind_all

dpdk/usertools/dpdk-devbind.py:457–474  ·  view source on GitHub ↗

Unbind method, takes a list of device locations

(dev_list, force=False)

Source from the content-addressed store, hash-verified

455
456
457def unbind_all(dev_list, force=False):
458 """Unbind method, takes a list of device locations"""
459
460 if dev_list[0] == "dpdk":
461 for d in devices.keys():
462 if "Driver_str" in devices[d]:
463 if devices[d]["Driver_str"] in dpdk_drivers:
464 unbind_one(devices[d]["Slot"], force)
465 return
466
467 try:
468 dev_list = map(dev_id_from_dev_name, dev_list)
469 except ValueError as ex:
470 print(ex)
471 sys.exit(1)
472
473 for d in dev_list:
474 unbind_one(d, force)
475
476
477def bind_all(dev_list, driver, force=False):

Callers 1

do_arg_actionsFunction · 0.85

Calls 2

unbind_oneFunction · 0.85
printFunction · 0.50

Tested by

no test coverage detected