Home
last modified time | relevance | path

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

/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.h22 int ctl_fd; member
54 extern void *rw_ctl_loop(int ctl_fd);
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()