Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 11 of 11) sorted by relevance

/arch/um/drivers/
Dubd_user.c26 int pid, fds[2], err; in start_io_thread() local
28 err = os_pipe(fds, 1, 1); in start_io_thread()
34 kernel_fd = fds[0]; in start_io_thread()
35 *fd_out = fds[1]; in start_io_thread()
53 os_close_file(fds[0]); in start_io_thread()
54 os_close_file(fds[1]); in start_io_thread()
Dslirp_user.c52 int fds[2], pid, err; in slirp_open() local
54 err = os_pipe(fds, 1, 1); in slirp_open()
58 err = slirp_tramp(pri->argw.argv, fds[1]); in slirp_open()
65 pri->slave = fds[1]; in slirp_open()
70 return fds[0]; in slirp_open()
72 close(fds[0]); in slirp_open()
73 close(fds[1]); in slirp_open()
Dslip_user.c78 int pid, fds[2], err, output_len; in slip_tramp() local
80 err = os_pipe(fds, 1, 0); in slip_tramp()
89 pe_data.stdout_fd = fds[1]; in slip_tramp()
90 pe_data.close_me = fds[0]; in slip_tramp()
106 close(fds[1]); in slip_tramp()
107 read_output(fds[0], output, output_len); in slip_tramp()
111 close(fds[0]); in slip_tramp()
117 close(fds[0]); in slip_tramp()
118 close(fds[1]); in slip_tramp()
Dchan_user.c223 int fds[2], n, err; in winch_tramp() local
226 err = os_pipe(fds, 1, 1); in winch_tramp()
234 .pipe_fd = fds[1] } ); in winch_tramp()
248 *fd_out = fds[0]; in winch_tramp()
249 n = read(fds[0], &c, sizeof(c)); in winch_tramp()
268 close(fds[1]); in winch_tramp()
269 close(fds[0]); in winch_tramp()
Dnet_user.c182 int pid, fds[2], err; in change_tramp() local
185 err = os_pipe(fds, 1, 0); in change_tramp()
191 pe_data.close_me = fds[0]; in change_tramp()
192 pe_data.stdout_fd = fds[1]; in change_tramp()
196 read_output(fds[0], output, output_len); in change_tramp()
198 close(fds[0]); in change_tramp()
199 close(fds[1]); in change_tramp()
Dubd_kern.c49 int fds[2]; member
1218 io_req->fds[0] = (ubd_dev->cow.file != NULL) ? ubd_dev->cow.fd : in prepare_request()
1220 io_req->fds[1] = ubd_dev->fd; in prepare_request()
1247 io_req->fds[0] = (ubd_dev->cow.file != NULL) ? ubd_dev->cow.fd : in prepare_flush_request()
1377 n = os_pwrite_file(req->fds[1], &req->bitmap_words, in update_bitmap()
1381 req->fds[1]); in update_bitmap()
1397 n = os_sync_file(req->fds[0]); in do_io()
1400 "fd = %d\n", -n, req->fds[0]); in do_io()
1426 n = os_pread_file(req->fds[bit], buf, len, off); in do_io()
1429 "fd = %d\n", -n, req->fds[bit]); in do_io()
[all …]
/arch/um/os-Linux/
Dhelper.c46 int pid, fds[2], ret, n; in run_helper() local
52 ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in run_helper()
60 ret = os_set_exec_close(fds[1]); in run_helper()
71 data.fd = fds[1]; in run_helper()
82 close(fds[1]); in run_helper()
83 fds[1] = -1; in run_helper()
89 n = read(fds[0], &ret, sizeof(ret)); in run_helper()
105 if (fds[1] != -1) in run_helper()
106 close(fds[1]); in run_helper()
107 close(fds[0]); in run_helper()
Dsigio.c53 struct pollfds *fds, tmp; in write_sigio_thread() local
59 fds = &current_poll; in write_sigio_thread()
61 n = poll(fds->poll, fds->used, -1); in write_sigio_thread()
68 for (i = 0; i < fds->used; i++) { in write_sigio_thread()
69 p = &fds->poll[i]; in write_sigio_thread()
87 fds->used--; in write_sigio_thread()
88 memmove(&fds->poll[i], &fds->poll[i + 1], in write_sigio_thread()
89 (fds->used - i) * sizeof(*fds->poll)); in write_sigio_thread()
Daio.c205 int fds[2], err; in init_aio_24() local
207 err = os_pipe(fds, 1, 1); in init_aio_24()
211 aio_req_fd_w = fds[0]; in init_aio_24()
212 aio_req_fd_r = fds[1]; in init_aio_24()
227 close(fds[0]); in init_aio_24()
228 close(fds[1]); in init_aio_24()
Dfile.c370 int os_pipe(int *fds, int stream, int close_on_exec) in os_pipe() argument
374 err = socketpair(AF_UNIX, type, 0, fds); in os_pipe()
381 err = os_set_exec_close(fds[0]); in os_pipe()
385 err = os_set_exec_close(fds[1]); in os_pipe()
394 close(fds[1]); in os_pipe()
395 close(fds[0]); in os_pipe()
/arch/um/os-Linux/drivers/
Dtuntap_user.c133 int err, fds[2], len, used; in tuntap_open() local
159 err = socketpair(AF_UNIX, SOCK_DGRAM, 0, fds); in tuntap_open()
172 err = tuntap_open_tramp(pri->gate_addr, &pri->fd, fds[0], in tuntap_open()
173 fds[1], buffer, len, &used); in tuntap_open()
189 close(fds[0]); in tuntap_open()