Lines Matching refs:path

35 	char *path;  member
224 size = strnlen(vsocket->path, PATH_MAX); in vhost_user_add_connection()
225 vhost_set_ifname(vid, vsocket->path, size); in vhost_user_add_connection()
357 strncpy(un->sun_path, vsocket->path, sizeof(un->sun_path)); in create_unix_socket()
369 const char *path = vsocket->path; in vhost_user_start_server() local
385 path, strerror(errno)); in vhost_user_start_server()
388 VHOST_LOG_CONFIG(INFO, "bind to %s\n", path); in vhost_user_start_server()
481 "%s: connected\n", reconn->vsocket->path); in vhost_user_client_reconnect()
525 const char *path = vsocket->path; in vhost_user_start_client() local
537 path, strerror(errno)); in vhost_user_start_client()
544 VHOST_LOG_CONFIG(INFO, "%s: reconnecting...\n", path); in vhost_user_start_client()
563 find_vhost_user_socket(const char *path) in find_vhost_user_socket() argument
567 if (path == NULL) in find_vhost_user_socket()
573 if (!strcmp(vsocket->path, path)) in find_vhost_user_socket()
581 rte_vhost_driver_attach_vdpa_device(const char *path, in rte_vhost_driver_attach_vdpa_device() argument
586 if (dev == NULL || path == NULL) in rte_vhost_driver_attach_vdpa_device()
590 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_attach_vdpa_device()
599 rte_vhost_driver_detach_vdpa_device(const char *path) in rte_vhost_driver_detach_vdpa_device() argument
604 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_detach_vdpa_device()
613 rte_vhost_driver_get_vdpa_device(const char *path) in rte_vhost_driver_get_vdpa_device() argument
619 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_vdpa_device()
628 rte_vhost_driver_disable_features(const char *path, uint64_t features) in rte_vhost_driver_disable_features() argument
633 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_disable_features()
648 rte_vhost_driver_enable_features(const char *path, uint64_t features) in rte_vhost_driver_enable_features() argument
653 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_enable_features()
671 rte_vhost_driver_set_features(const char *path, uint64_t features) in rte_vhost_driver_set_features() argument
676 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_set_features()
692 rte_vhost_driver_get_features(const char *path, uint64_t *features) in rte_vhost_driver_get_features() argument
700 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_features()
703 "socket file %s is not registered yet.\n", path); in rte_vhost_driver_get_features()
717 "for socket file %s.\n", path); in rte_vhost_driver_get_features()
730 rte_vhost_driver_set_protocol_features(const char *path, in rte_vhost_driver_set_protocol_features() argument
736 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_set_protocol_features()
744 rte_vhost_driver_get_protocol_features(const char *path, in rte_vhost_driver_get_protocol_features() argument
753 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_protocol_features()
756 "socket file %s is not registered yet.\n", path); in rte_vhost_driver_get_protocol_features()
771 "for socket file %s.\n", path); in rte_vhost_driver_get_protocol_features()
785 rte_vhost_driver_get_queue_num(const char *path, uint32_t *queue_num) in rte_vhost_driver_get_queue_num() argument
793 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_get_queue_num()
796 "socket file %s is not registered yet.\n", path); in rte_vhost_driver_get_queue_num()
810 "for socket file %s.\n", path); in rte_vhost_driver_get_queue_num()
825 if (vsocket && vsocket->path) { in vhost_user_socket_mem_free()
826 free(vsocket->path); in vhost_user_socket_mem_free()
827 vsocket->path = NULL; in vhost_user_socket_mem_free()
842 rte_vhost_driver_register(const char *path, uint64_t flags) in rte_vhost_driver_register() argument
847 if (!path) in rte_vhost_driver_register()
862 vsocket->path = strdup(path); in rte_vhost_driver_register()
863 if (vsocket->path == NULL) { in rte_vhost_driver_register()
1009 rte_vhost_driver_unregister(const char *path) in rte_vhost_driver_unregister() argument
1015 if (path == NULL) in rte_vhost_driver_unregister()
1024 if (!strcmp(vsocket->path, path)) { in rte_vhost_driver_unregister()
1047 conn->connfd, path); in rte_vhost_driver_unregister()
1068 unlink(path); in rte_vhost_driver_unregister()
1093 rte_vhost_driver_callback_register(const char *path, in rte_vhost_driver_callback_register() argument
1099 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_callback_register()
1108 vhost_driver_callback_get(const char *path) in vhost_driver_callback_get() argument
1113 vsocket = find_vhost_user_socket(path); in vhost_driver_callback_get()
1120 rte_vhost_driver_start(const char *path) in rte_vhost_driver_start() argument
1126 vsocket = find_vhost_user_socket(path); in rte_vhost_driver_start()