Searched refs:fds (Results 1 - 25 of 89) sorted by path

1234

/linux-master/tools/testing/selftests/powerpc/pmu/ebb/
H A Debb_on_child_test.c52 FAIL_IF(pipe(read_pipe.fds) == -1);
53 FAIL_IF(pipe(write_pipe.fds) == -1);
H A Dtask_event_pinned_vs_ebb_test.c47 FAIL_IF(pipe(read_pipe.fds) == -1);
48 FAIL_IF(pipe(write_pipe.fds) == -1);
H A Dtask_event_vs_ebb_test.c45 FAIL_IF(pipe(read_pipe.fds) == -1);
46 FAIL_IF(pipe(write_pipe.fds) == -1);
/linux-master/tools/usb/usbip/src/
H A Dusbipd.c497 struct pollfd *fds; local
546 fds = calloc(nsockfd, sizeof(struct pollfd));
548 fds[i].fd = sockfdlist[i];
549 fds[i].events = POLLIN;
562 r = ppoll(fds, nsockfd, &timeout, &sigmask);
568 if (fds[i].revents & POLLIN) {
580 free(fds);
/linux-master/arch/um/drivers/
H A Dchan_user.c229 int fds[2], n, err, pid; local
232 err = os_pipe(fds, 1, 1);
240 .pipe_fd = fds[1] } );
255 *fd_out = fds[0];
256 n = read(fds[0], &c, sizeof(c));
276 close(fds[1]);
277 close(fds[0]);
H A Dnet_user.c182 int pid, fds[2], err; local
185 err = os_pipe(fds, 1, 0);
191 pe_data.close_me = fds[0];
192 pe_data.stdout_fd = fds[1];
196 read_output(fds[0], output, output_len);
198 close(fds[0]);
199 close(fds[1]);
H A Dslip_user.c78 int pid, fds[2], err, output_len; local
80 err = os_pipe(fds, 1, 0);
89 pe_data.stdout_fd = fds[1];
90 pe_data.close_me = fds[0];
106 close(fds[1]);
107 read_output(fds[0], output, output_len);
111 close(fds[0]);
117 close(fds[0]);
118 close(fds[1]);
H A Dslirp_user.c52 int fds[2], pid, err; local
54 err = os_pipe(fds, 1, 1);
58 err = slirp_tramp(pri->argw.argv, fds[1]);
65 pri->slave = fds[1];
70 return fds[0];
72 close(fds[0]);
73 close(fds[1]);
H A Dubd_kern.c61 int fds[2]; member in struct:io_thread_req
1259 io_req->fds[0] = dev->cow.fd;
1261 io_req->fds[0] = dev->fd;
1264 io_req->fds[1] = dev->fd;
1420 n = os_pwrite_file(req->fds[1], &segment->bitmap_words,
1438 /* fds[0] is always either the rw image or our cow file */
1439 req->error = map_error(-os_sync_file(req->fds[0]));
1464 n = os_pread_file(req->fds[bit], buf, len, off);
1473 n = os_pwrite_file(req->fds[bit], buf, len, off);
1480 n = os_falloc_punch(req->fds[bi
[all...]
H A Dubd_user.c30 int pid, fds[2], err; local
32 err = os_pipe(fds, 1, 1);
38 kernel_fd = fds[0];
41 *fd_out = fds[1];
60 os_close_file(fds[0]);
61 os_close_file(fds[1]);
H A Dvector_kern.c361 mmsg_vector->msg_hdr.msg_name = vp->fds->remote_addr;
362 mmsg_vector->msg_hdr.msg_namelen = vp->fds->remote_addr_size;
429 vp->fds->tx_fd,
804 if (vp->fds != NULL)
871 pkt_len = uml_vector_recvmsg(vp->fds->rx_fd, &hdr, 0);
924 vp->fds->tx_fd,
977 vp->fds->rx_fd, qi->mmsg_vector, qi->max_depth, 0);
1054 deactivate_fd(vp->fds->rx_fd, vp->rx_irq);
1055 if ((vp->fds->rx_fd != vp->fds
[all...]
H A Dvector_kern.h86 struct vector_fds *fds; member in struct:vector_private
H A Dvector_transports.c402 if (uml_raw_enable_vnet_headers(vp->fds->rx_fd)) {
403 if (!uml_raw_enable_vnet_headers(vp->fds->tx_fd))
423 if (uml_raw_enable_vnet_headers(vp->fds->rx_fd)) {
440 if (uml_tap_enable_vnet_headers(vp->fds->tx_fd))
448 if (uml_tap_enable_vnet_headers(vp->fds->tx_fd)) {
H A Dvirtio_uml.c82 const int *fds, unsigned int fds_num)
87 rc = os_sendmsg_fds(fd, buf, len, fds, fds_num);
91 fds = NULL;
228 int *fds, size_t num_fds)
251 rc = full_sendmsg_fds(vu_dev->sock, msg, size, fds, num_fds);
485 /* Close unused write end of request fds */
632 int fds[2]; local
671 &fds[0],
679 &fds[1], &msg.payload.mem_regions.regions[1]);
684 return vhost_user_send(vu_dev, false, &msg, fds,
81 full_sendmsg_fds(int fd, const void *buf, unsigned int len, const int *fds, unsigned int fds_num) argument
226 vhost_user_send(struct virtio_uml_device *vu_dev, bool need_response, struct vhost_user_msg *msg, int *fds, size_t num_fds) argument
[all...]
/linux-master/arch/um/include/shared/
H A Dos.h180 const int *fds, unsigned int fds_num);
181 int os_poll(unsigned int n, const int *fds);
/linux-master/arch/um/kernel/
H A Dtime.c154 int fds[2] = { fd, time_travel_ext_fd }; local
160 while ((ret = os_poll(2, fds))) {
/linux-master/arch/um/os-Linux/drivers/
H A Dtuntap_user.c133 int err, fds[2], len, used; local
159 err = socketpair(AF_UNIX, SOCK_DGRAM, 0, fds);
172 err = tuntap_open_tramp(pri->gate_addr, &pri->fd, fds[0],
173 fds[1], buffer, len, &used);
189 close(fds[0]);
/linux-master/arch/um/os-Linux/
H A Dfile.c375 int os_pipe(int *fds, int stream, int close_on_exec) argument
379 err = socketpair(AF_UNIX, type, 0, fds);
386 err = os_set_exec_close(fds[0]);
390 err = os_set_exec_close(fds[1]);
399 close(fds[1]);
400 close(fds[0]);
646 int os_sendmsg_fds(int fd, const void *buf, unsigned int len, const int *fds, argument
654 char control[CMSG_SPACE(sizeof(*fds) * OS_SENDMSG_MAX_FDS)];
657 unsigned int fds_size = sizeof(*fds) * fds_num;
673 memcpy(CMSG_DATA(cmsg), fds, fds_siz local
681 os_poll(unsigned int n, const int *fds) argument
[all...]
H A Dhelper.c47 int pid, fds[2], ret, n; local
53 ret = socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
61 ret = os_set_exec_close(fds[1]);
72 data.fd = fds[1];
83 close(fds[1]);
84 fds[1] = -1;
90 n = read(fds[0], &ret, sizeof(ret));
110 if (fds[1] != -1)
111 close(fds[1]);
112 close(fds[
[all...]
H A Dsigio.c53 struct pollfds *fds, tmp; local
59 fds = &current_poll;
61 n = poll(fds->poll, fds->used, -1);
68 for (i = 0; i < fds->used; i++) {
69 p = &fds->poll[i];
87 fds->used--;
88 memmove(&fds->poll[i], &fds->poll[i + 1],
89 (fds
[all...]
/linux-master/drivers/fpga/
H A Ddfl.c1930 * @fds: eventfds to bind with irqs. unbind related irq if fds[n] is negative.
1931 * unbind "count" specified number of irqs if fds ptr is NULL.
1934 * fds[n] is negative. Unbind "count" specified number of irqs if fds ptr is
1940 unsigned int count, int32_t *fds)
1954 int fd = fds ? fds[i] : -1;
1998 s32 *fds; local
2011 fds
1939 dfl_fpga_set_irq_triggers(struct dfl_feature *feature, unsigned int start, unsigned int count, int32_t *fds) argument
[all...]
H A Ddfl.h557 unsigned int count, int32_t *fds);
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth.c341 struct dpaa2_fd *fds; local
346 fds = xdp_fds->fds;
350 err = priv->enqueue(priv, fq, &fds[total_enqueued],
368 struct dpaa2_fd *fds; local
378 fds = fq->xdp_tx_fds.fds;
380 percpu_stats->tx_bytes += dpaa2_fd_get_len(&fds[i]);
384 dpaa2_eth_recycle_buf(priv, ch, dpaa2_fd_get_addr(&fds[i]));
416 dest_fd = &fq->xdp_tx_fds.fds[f
2862 struct dpaa2_fd *fds; local
[all...]
H A Ddpaa2-eth.h448 struct dpaa2_fd fds[DEV_MAP_BULK_SIZE]; member in struct:dpaa2_eth_xdp_fds
H A Ddpaa2-xsk.c400 struct dpaa2_fd *fds; local
405 fds = (this_cpu_ptr(priv->fd))->array;
416 err = dpaa2_xsk_tx_build_fd(priv, ch, &fds[i], &xdp_descs[i]);
422 trace_dpaa2_tx_xsk_fd(priv->net_dev, &fds[i]);
431 err = priv->enqueue(priv, fq, &fds[total_enqueued], 0,
445 percpu_stats->tx_bytes += dpaa2_fd_get_len(&fds[i]);
447 dpaa2_eth_free_tx_fd(priv, ch, fq, &fds[i], false);

Completed in 283 milliseconds

1234