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

Function vhost_driver_callback_get

dpdk/lib/vhost/socket.c:1174–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1172}
1173
1174struct rte_vhost_device_ops const *
1175vhost_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
1186int
1187rte_vhost_driver_start(const char *path)

Callers 2

vduse_device_startFunction · 0.85
vhost_user_msg_handlerFunction · 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