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

Function rte_vhost_driver_get_vdpa_device

dpdk/lib/vhost/socket.c:617–630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615}
616
617struct rte_vdpa_device *
618rte_vhost_driver_get_vdpa_device(const char *path)
619{
620 struct vhost_user_socket *vsocket;
621 struct rte_vdpa_device *dev = NULL;
622
623 pthread_mutex_lock(&vhost_user.mutex);
624 vsocket = find_vhost_user_socket(path);
625 if (vsocket)
626 dev = vsocket->vdpa_dev;
627 pthread_mutex_unlock(&vhost_user.mutex);
628
629 return dev;
630}
631
632int
633rte_vhost_driver_get_vdpa_dev_type(const char *path, uint32_t *type)

Callers

nothing calls this directly

Calls 3

pthread_mutex_lockFunction · 0.85
find_vhost_user_socketFunction · 0.85
pthread_mutex_unlockFunction · 0.85

Tested by

no test coverage detected