Searched refs:control_fd (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/tools/testing/vsock/ ! |
D | control.c | 31 static int control_fd = -1; variable 62 control_fd = fd; in control_init() 83 control_fd = accept(fd, NULL, 0); in control_init() 86 if (control_fd < 0) { in control_init() 97 if (control_fd < 0) { in control_init() 109 close(control_fd); in control_cleanup() 110 control_fd = -1; in control_cleanup() 122 ret = send(control_fd, str, len, MSG_MORE); in control_writeln() 132 ret = send(control_fd, "\n", 1, 0); in control_writeln() 203 ret = recv(control_fd, &buf[idx], 1, 0); in control_readln()
|
/linux-6.12.1/arch/um/os-Linux/drivers/ ! |
D | ethertap_user.c | 183 pri->control_fd = control_fds[0]; in etap_open() 184 iter_addresses(pri->dev, etap_open_addr, &pri->control_fd); in etap_open() 200 iter_addresses(pri->dev, etap_close_addr, &pri->control_fd); in etap_close() 207 if (shutdown(pri->control_fd, SHUT_RDWR) < 0) in etap_close() 213 close(pri->control_fd); in etap_close() 214 pri->control_fd = -1; in etap_close() 223 if (pri->control_fd == -1) in etap_add_addr() 225 etap_open_addr(addr, netmask, &pri->control_fd); in etap_add_addr() 233 if (pri->control_fd == -1) in etap_del_addr() 236 etap_close_addr(addr, netmask, &pri->control_fd); in etap_del_addr()
|
D | etap.h | 15 int control_fd; member
|
D | ethertap_kern.c | 30 epri->control_fd = -1; in etap_init()
|
/linux-6.12.1/tools/perf/util/ ! |
D | intel-tpebs.c | 95 static int start_perf_record(int control_fd[], int ack_fd[], in start_perf_record() argument 102 scnprintf(buf, sizeof(buf), "--control=fd:%d,%d", control_fd[0], ack_fd[1]); in start_perf_record() 268 int control_fd[2], ack_fd[2], len; in tpebs_start() local 272 if (pipe(control_fd) < 0) { in tpebs_start() 283 ret = start_perf_record(control_fd, ack_fd, cpumap_buf); in tpebs_start() 296 ret = write(control_fd[1], EVLIST_CTL_CMD_ENABLE_TAG, len); in tpebs_start() 330 close(control_fd[0]); in tpebs_start() 331 close(control_fd[1]); in tpebs_start()
|