Lines Matching refs:ctrl
40 int libxenvchan_write_all(struct libxenvchan *ctrl, char *buf, int size) in libxenvchan_write_all() argument
45 ret = libxenvchan_write(ctrl, buf + written, size - written); in libxenvchan_write_all()
79 void reader(struct libxenvchan *ctrl) in reader() argument
84 size = libxenvchan_read(ctrl, buf, size); in reader()
88 libxenvchan_close(ctrl); in reader()
103 void writer(struct libxenvchan *ctrl) in writer() argument
111 libxenvchan_close(ctrl); in writer()
116 size = libxenvchan_write_all(ctrl, buf, size); in writer()
138 struct libxenvchan *ctrl = 0; in main() local
149 ctrl = libxenvchan_server_init(NULL, atoi(argv[3]), argv[4], 0, 0); in main()
151 ctrl = libxenvchan_client_init(NULL, atoi(argv[3]), argv[4]); in main()
154 if (!ctrl) { in main()
158 ctrl->blocking = 1; in main()
163 writer(ctrl); in main()
165 reader(ctrl); in main()
166 libxenvchan_close(ctrl); in main()