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

Function find_vhost_user_socket

dpdk/lib/vhost/socket.c:567–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567static struct vhost_user_socket *
568find_vhost_user_socket(const char *path)
569{
570 int i;
571
572 if (path == NULL)
573 return NULL;
574
575 for (i = 0; i < vhost_user.vsocket_cnt; i++) {
576 struct vhost_user_socket *vsocket = vhost_user.vsockets[i];
577
578 if (!strcmp(vsocket->path, path))
579 return vsocket;
580 }
581
582 return NULL;
583}
584
585int
586rte_vhost_driver_attach_vdpa_device(const char *path,

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected