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

Function main

dpdk/usertools/dpdk-devbind.py:773–794  ·  view source on GitHub ↗

program main function

()

Source from the content-addressed store, hash-verified

771
772
773def main():
774 '''program main function'''
775 # check if lspci is installed, suppress any output
776 with open(os.devnull, 'w') as devnull:
777 ret = subprocess.call(['which', 'lspci'],
778 stdout=devnull, stderr=devnull)
779 if ret != 0:
780 sys.exit("'lspci' not found - please install 'pciutils'")
781 parse_args()
782 check_modules()
783 clear_data()
784 get_device_details(network_devices)
785 get_device_details(baseband_devices)
786 get_device_details(crypto_devices)
787 get_device_details(dma_devices)
788 get_device_details(eventdev_devices)
789 get_device_details(mempool_devices)
790 get_device_details(compress_devices)
791 get_device_details(regex_devices)
792 get_device_details(ml_devices)
793 get_device_details(misc_devices)
794 do_arg_actions()
795
796
797if __name__ == "__main__":

Callers 1

dpdk-devbind.pyFile · 0.70

Calls 5

check_modulesFunction · 0.85
clear_dataFunction · 0.85
get_device_detailsFunction · 0.85
do_arg_actionsFunction · 0.85
parse_argsFunction · 0.70

Tested by

no test coverage detected