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

Function vhost_destroy_device

dpdk/lib/vhost/vhost.c:765–779  ·  view source on GitHub ↗

* Invoked when there is the vhost-user connection is broken (when * the virtio device is being detached). */

Source from the content-addressed store, hash-verified

763 * the virtio device is being detached).
764 */
765void
766vhost_destroy_device(int vid)
767{
768 struct virtio_net *dev = get_device(vid);
769
770 if (dev == NULL)
771 return;
772
773 vhost_destroy_device_notify(dev);
774
775 cleanup_device(dev, 1);
776 free_device(dev);
777
778 vhost_devices[vid] = NULL;
779}
780
781void
782vhost_attach_vdpa_device(int vid, struct rte_vdpa_device *vdpa_dev)

Callers 5

vhost_user_read_cbFunction · 0.85
vduse_device_createFunction · 0.85
vduse_device_destroyFunction · 0.85

Calls 4

get_deviceFunction · 0.85
cleanup_deviceFunction · 0.85
free_deviceFunction · 0.85

Tested by

no test coverage detected