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

Function rte_vhost_driver_detach_vdpa_device

dpdk/lib/vhost/socket.c:603–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601}
602
603int
604rte_vhost_driver_detach_vdpa_device(const char *path)
605{
606 struct vhost_user_socket *vsocket;
607
608 pthread_mutex_lock(&vhost_user.mutex);
609 vsocket = find_vhost_user_socket(path);
610 if (vsocket)
611 vsocket->vdpa_dev = NULL;
612 pthread_mutex_unlock(&vhost_user.mutex);
613
614 return vsocket ? 0 : -1;
615}
616
617struct rte_vdpa_device *
618rte_vhost_driver_get_vdpa_device(const char *path)

Callers 1

close_vdpaFunction · 0.85

Calls 3

pthread_mutex_lockFunction · 0.85
find_vhost_user_socketFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected