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

Function cleanup_vq

dpdk/lib/vhost/vhost.c:339–346  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

337}
338
339void
340cleanup_vq(struct vhost_virtqueue *vq, int destroy)
341{
342 if ((vq->callfd >= 0) && (destroy != 0))
343 close(vq->callfd);
344 if (vq->kickfd >= 0)
345 close(vq->kickfd);
346}
347
348void
349cleanup_vq_inflight(struct virtio_net *dev, struct vhost_virtqueue *vq)

Callers 2

cleanup_deviceFunction · 0.85
vhost_user_set_featuresFunction · 0.85

Calls 1

closeFunction · 0.50

Tested by

no test coverage detected