| /arch/um/drivers/ |
| A D | ubd_user.c | 30 int fds[2], err; in start_io_thread() local 32 err = os_pipe(fds, 1, 1); in start_io_thread() 38 kernel_fd = fds[0]; in start_io_thread() 41 *fd_out = fds[1]; in start_io_thread() 60 os_close_file(fds[0]); in start_io_thread() 61 os_close_file(fds[1]); in start_io_thread()
|
| A D | chan_user.c | 243 int fds[2], n, err, pid; in winch_tramp() local 246 err = os_pipe(fds, 1, 1); in winch_tramp() 254 .pipe_fd = fds[1] } ); in winch_tramp() 269 *fd_out = fds[0]; in winch_tramp() 270 n = read(fds[0], &c, sizeof(c)); in winch_tramp() 290 close(fds[1]); in winch_tramp() 291 close(fds[0]); in winch_tramp()
|
| A D | vector_kern.c | 417 vp->fds->tx_fd, in vector_send() 797 if (vp->fds != NULL) in vector_remove() 918 vp->fds->tx_fd, in writev_tx() 1049 if ((vp->fds->rx_fd != vp->fds->tx_fd) && (vp->tx_irq != 0)) in vector_net_start_xmit() 1120 if (vp->fds == NULL) in vector_net_close() 1134 if (vp->fds->rx_fd > 0) { in vector_net_close() 1138 vp->fds->rx_fd = -1; in vector_net_close() 1142 vp->fds->tx_fd = -1; in vector_net_close() 1156 kfree(vp->fds); in vector_net_close() 1157 vp->fds = NULL; in vector_net_close() [all …]
|
| A D | vector_transports.c | 402 if (uml_raw_enable_vnet_headers(vp->fds->rx_fd)) { in build_raw_transport_data() 403 if (!uml_raw_enable_vnet_headers(vp->fds->tx_fd)) in build_raw_transport_data() 423 if (uml_raw_enable_vnet_headers(vp->fds->rx_fd)) { in build_hybrid_transport_data() 440 if (uml_tap_enable_vnet_headers(vp->fds->tx_fd)) in build_hybrid_transport_data() 448 if (uml_tap_enable_vnet_headers(vp->fds->tx_fd)) { in build_tap_transport_data()
|
| A D | ubd_kern.c | 60 int fds[2]; member 1242 io_req->fds[0] = dev->cow.fd; in ubd_alloc_req() 1244 io_req->fds[0] = dev->fd; in ubd_alloc_req() 1247 io_req->fds[1] = dev->fd; in ubd_alloc_req() 1403 n = os_pwrite_file(req->fds[1], &segment->bitmap_words, in update_bitmap() 1422 req->error = map_error(-os_sync_file(req->fds[0])); in do_io() 1447 n = os_pread_file(req->fds[bit], buf, len, off); in do_io() 1456 n = os_pwrite_file(req->fds[bit], buf, len, off); in do_io() 1463 n = os_falloc_punch(req->fds[bit], off, len); in do_io() 1470 n = os_falloc_zeroes(req->fds[bit], off, len); in do_io()
|
| A D | vector_kern.h | 87 struct vector_fds *fds; member
|
| A D | virtio_uml.c | 81 const int *fds, unsigned int fds_num) in full_sendmsg_fds() argument 86 rc = os_sendmsg_fds(fd, buf, len, fds, fds_num); in full_sendmsg_fds() 90 fds = NULL; in full_sendmsg_fds() 227 int *fds, size_t num_fds) in vhost_user_send() argument 250 rc = full_sendmsg_fds(vu_dev->sock, msg, size, fds, num_fds); in vhost_user_send() 651 int fds[2]; in vhost_user_set_mem_table() local 690 &fds[0], in vhost_user_set_mem_table() 696 return vhost_user_send(vu_dev, false, &msg, fds, in vhost_user_set_mem_table()
|
| /arch/um/os-Linux/ |
| A D | helper.c | 48 int pid, fds[2], ret, n; in run_helper() local 54 ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fds); in run_helper() 62 ret = os_set_exec_close(fds[1]); in run_helper() 73 data.fd = fds[1]; in run_helper() 84 close(fds[1]); in run_helper() 85 fds[1] = -1; in run_helper() 91 n = read(fds[0], &ret, sizeof(ret)); in run_helper() 111 if (fds[1] != -1) in run_helper() 112 close(fds[1]); in run_helper() 113 close(fds[0]); in run_helper()
|
| A D | file.c | 369 err = socketpair(AF_UNIX, type, 0, fds); in os_pipe() 376 err = os_set_exec_close(fds[0]); in os_pipe() 380 err = os_set_exec_close(fds[1]); in os_pipe() 389 close(fds[1]); in os_pipe() 390 close(fds[0]); in os_pipe() 511 char buf[CMSG_SPACE(sizeof(*fds) * MAX_RCV_FDS)]; in os_rcv_fd_msg() 538 memcpy(fds, CMSG_DATA(cmsg), cmsg->cmsg_len); in os_rcv_fd_msg() 654 unsigned int fds_size = sizeof(*fds) * fds_num; in os_sendmsg_fds() 670 memcpy(CMSG_DATA(cmsg), fds, fds_size); in os_sendmsg_fds() 678 int os_poll(unsigned int n, const int *fds) in os_poll() argument [all …]
|
| /arch/um/include/shared/ |
| A D | os.h | 166 ssize_t os_rcv_fd_msg(int fd, int *fds, unsigned int n_fds, 180 const int *fds, unsigned int fds_num); 181 int os_poll(unsigned int n, const int *fds);
|
| /arch/um/kernel/ |
| A D | time.c | 249 int fds[2] = { fd, time_travel_ext_fd }; in __time_travel_wait_readable() local 255 while ((ret = os_poll(2, fds))) { in __time_travel_wait_readable()
|