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

Function signal_handler

dpdk/examples/vhost_blk/vhost_blk.c:853–867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

851}
852
853static void
854signal_handler(__rte_unused int signum)
855{
856 struct vhost_blk_ctrlr *ctrlr;
857
858 ctrlr = vhost_blk_ctrlr_find(dev_pathname);
859 if (ctrlr == NULL)
860 return;
861
862 if (ctrlr->started)
863 destroy_device(ctrlr->vid);
864
865 vhost_blk_ctrlr_destroy(ctrlr);
866 exit(0);
867}
868
869int main(int argc, char *argv[])
870{

Callers

nothing calls this directly

Calls 3

vhost_blk_ctrlr_findFunction · 0.85
vhost_blk_ctrlr_destroyFunction · 0.85
destroy_deviceFunction · 0.70

Tested by

no test coverage detected