| 615 | } |
| 616 | |
| 617 | struct rte_vdpa_device * |
| 618 | rte_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 | |
| 632 | int |
| 633 | rte_vhost_driver_get_vdpa_dev_type(const char *path, uint32_t *type) |
nothing calls this directly
no test coverage detected