| 601 | } |
| 602 | |
| 603 | int |
| 604 | rte_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 | |
| 617 | struct rte_vdpa_device * |
| 618 | rte_vhost_driver_get_vdpa_device(const char *path) |
no test coverage detected