Home
last modified time | relevance | path

Searched refs:ctl_fd (Results 1 – 4 of 4) sorted by relevance

/Linux-v4.19/tools/virtio/virtio-trace/
Dtrace-agent-ctl.c36 int ctl_fd; in rw_ctl_init() local
38 ctl_fd = open(ctl_path, O_RDONLY); in rw_ctl_init()
39 if (ctl_fd == -1) { in rw_ctl_init()
44 return ctl_fd; in rw_ctl_init()
50 static int wait_order(int ctl_fd) in wait_order() argument
56 poll_fd.fd = ctl_fd; in wait_order()
91 void *rw_ctl_loop(int ctl_fd) in rw_ctl_loop() argument
104 ret = wait_order(ctl_fd); in rw_ctl_loop()
108 rlen = read(ctl_fd, buf, sizeof(buf)); in rw_ctl_loop()
Dtrace-agent.c63 s->ctl_fd = -1; in agent_info_new()
179 s->ctl_fd = rw_ctl_init((const char *)CTL_PATH); in agent_info_init()
229 rw_ctl_loop(s->ctl_fd); in agent_main_loop()
247 close(s->ctl_fd); in agent_info_free()
Dtrace-agent.h22 int ctl_fd; member
54 extern void *rw_ctl_loop(int ctl_fd);
/Linux-v4.19/tools/testing/selftests/cgroup/
Dtest_memcontrol.c822 int sk, client_sk, ctl_fd, yes = 1, ret = -1; in tcp_server() local
825 ctl_fd = srv_args->ctl[1]; in tcp_server()
839 write(ctl_fd, &errno, sizeof(errno)); in tcp_server()
847 if (write(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) { in tcp_server()