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

Function vhost_blk_ctrlr_destroy

dpdk/examples/vhost_blk/vhost_blk.c:840–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840static void
841vhost_blk_ctrlr_destroy(struct vhost_blk_ctrlr *ctrlr)
842{
843 if (ctrlr->bdev != NULL) {
844 rte_free(ctrlr->bdev->data);
845
846 rte_free(ctrlr->bdev);
847 }
848 rte_free(ctrlr);
849
850 rte_vhost_driver_unregister(dev_pathname);
851}
852
853static void
854signal_handler(__rte_unused int signum)

Callers 1

signal_handlerFunction · 0.85

Calls 2

rte_freeFunction · 0.85

Tested by

no test coverage detected