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

Function do_arg_actions

dpdk/usertools/dpdk-devbind.py:745–770  ·  view source on GitHub ↗

do the actual action requested by the user

()

Source from the content-addressed store, hash-verified

743
744
745def do_arg_actions():
746 '''do the actual action requested by the user'''
747 global b_flag
748 global status_flag
749 global force_flag
750 global args
751
752 if b_flag in ["none", "None"]:
753 unbind_all(args, force_flag)
754 elif b_flag is not None:
755 bind_all(args, b_flag, force_flag)
756 if status_flag:
757 if b_flag is not None:
758 clear_data()
759 # refresh if we have changed anything
760 get_device_details(network_devices)
761 get_device_details(baseband_devices)
762 get_device_details(crypto_devices)
763 get_device_details(dma_devices)
764 get_device_details(eventdev_devices)
765 get_device_details(mempool_devices)
766 get_device_details(compress_devices)
767 get_device_details(regex_devices)
768 get_device_details(ml_devices)
769 get_device_details(misc_devices)
770 show_status()
771
772
773def main():

Callers 1

mainFunction · 0.85

Calls 5

unbind_allFunction · 0.85
bind_allFunction · 0.85
clear_dataFunction · 0.85
get_device_detailsFunction · 0.85
show_statusFunction · 0.85

Tested by

no test coverage detected