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

/linux-4.4.14/tools/virtio/virtio-trace/
H A Dtrace-agent-ctl.c36 int ctl_fd; rw_ctl_init() local
38 ctl_fd = open(ctl_path, O_RDONLY); rw_ctl_init()
39 if (ctl_fd == -1) { rw_ctl_init()
40 pr_err("Cannot open ctl_fd\n"); rw_ctl_init()
44 return ctl_fd; rw_ctl_init()
50 static int wait_order(int ctl_fd) wait_order() argument
56 poll_fd.fd = ctl_fd; wait_order()
91 void *rw_ctl_loop(int ctl_fd) rw_ctl_loop() argument
104 ret = wait_order(ctl_fd); rw_ctl_loop()
108 rlen = read(ctl_fd, buf, sizeof(buf)); rw_ctl_loop()
H A Dtrace-agent.h14 * @ctl_fd: fd of control path, /dev/virtio-ports/agent-ctl-path
21 int ctl_fd; member in struct:agent_info
53 extern void *rw_ctl_loop(int ctl_fd);
H A Dtrace-agent.c63 s->ctl_fd = -1; agent_info_new()
179 s->ctl_fd = rw_ctl_init((const char *)CTL_PATH); agent_info_init()
229 rw_ctl_loop(s->ctl_fd); agent_main_loop()
247 close(s->ctl_fd); agent_info_free()

Completed in 103 milliseconds