Lines Matching refs:path

43 	char path[sizeof(((struct sockaddr_un *)0)->sun_path)];  member
433 static char path[PATH_MAX]; in get_socket_path() local
434 snprintf(path, sizeof(path), "%s/dpdk_telemetry.v%d", in get_socket_path()
436 return path; in get_socket_path()
442 if (v2_socket.path[0]) in unlink_sockets()
443 unlink(v2_socket.path); in unlink_sockets()
444 if (v1_socket.path[0]) in unlink_sockets()
445 unlink(v1_socket.path); in unlink_sockets()
449 create_socket(char *path) in create_socket() argument
458 strlcpy(sun.sun_path, path, sizeof(sun.sun_path)); in create_socket()
459 TMTY_LOG(DEBUG, "Attempting socket bind to path '%s'\n", path); in create_socket()
464 TMTY_LOG(DEBUG, "Initial bind to socket '%s' failed.\n", path); in create_socket()
524 if ((size_t) snprintf(v1_socket.path, sizeof(v1_socket.path), in telemetry_legacy_init()
525 "%s/telemetry", socket_dir) >= sizeof(v1_socket.path)) { in telemetry_legacy_init()
529 v1_socket.sock = create_socket(v1_socket.path); in telemetry_legacy_init()
531 v1_socket.path[0] = '\0'; in telemetry_legacy_init()
540 unlink(v1_socket.path); in telemetry_legacy_init()
541 v1_socket.path[0] = '\0'; in telemetry_legacy_init()
554 char spath[sizeof(v2_socket.path)]; in telemetry_v2_init()
571 memcpy(v2_socket.path, spath, sizeof(v2_socket.path)); in telemetry_v2_init()
573 v2_socket.sock = create_socket(v2_socket.path); in telemetry_v2_init()
577 v2_socket.path[0] = '\0'; /* clear socket path */ in telemetry_v2_init()
581 if (snprintf(v2_socket.path, sizeof(v2_socket.path), "%s:%d", in telemetry_v2_init()
582 spath, ++suffix) >= (int)sizeof(v2_socket.path)) { in telemetry_v2_init()
586 v2_socket.sock = create_socket(v2_socket.path); in telemetry_v2_init()
594 unlink(v2_socket.path); in telemetry_v2_init()
595 v2_socket.path[0] = '\0'; in telemetry_v2_init()