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

Function cleanup_device

dpdk/lib/vhost/vhost.c:377–388  ·  view source on GitHub ↗

* Unmap any memory, close any file descriptors and * free any memory owned by a device. */

Source from the content-addressed store, hash-verified

375 * free any memory owned by a device.
376 */
377void
378cleanup_device(struct virtio_net *dev, int destroy)
379{
380 uint32_t i;
381
382 vhost_backend_cleanup(dev);
383
384 for (i = 0; i < dev->nr_vring; i++) {
385 cleanup_vq(dev->virtqueue[i], destroy);
386 cleanup_vq_inflight(dev, dev->virtqueue[i]);
387 }
388}
389
390static void
391vhost_free_async_mem(struct vhost_virtqueue *vq)

Callers 2

vhost_destroy_deviceFunction · 0.85
vhost_user_reset_ownerFunction · 0.85

Calls 3

vhost_backend_cleanupFunction · 0.85
cleanup_vqFunction · 0.85
cleanup_vq_inflightFunction · 0.85

Tested by

no test coverage detected