| 1172 | } |
| 1173 | |
| 1174 | struct rte_vhost_device_ops const * |
| 1175 | vhost_driver_callback_get(const char *path) |
| 1176 | { |
| 1177 | struct vhost_user_socket *vsocket; |
| 1178 | |
| 1179 | pthread_mutex_lock(&vhost_user.mutex); |
| 1180 | vsocket = find_vhost_user_socket(path); |
| 1181 | pthread_mutex_unlock(&vhost_user.mutex); |
| 1182 | |
| 1183 | return vsocket ? vsocket->notify_ops : NULL; |
| 1184 | } |
| 1185 | |
| 1186 | int |
| 1187 | rte_vhost_driver_start(const char *path) |
no test coverage detected