Lines Matching refs:fds

1008                                int *nfds_io, struct pollfd *fds,  in beforepoll_internal()  argument
1096 fds[used].fd = req_fd; in beforepoll_internal()
1097 fds[used].events = req_events; in beforepoll_internal()
1098 fds[used].revents = 0; in beforepoll_internal()
1136 struct pollfd *fds, int *timeout_upd, in libxl_osevent_beforepoll() argument
1142 nfds_io, fds, timeout_upd, now); in libxl_osevent_beforepoll()
1149 const struct pollfd *fds, int nfds, in afterpoll_check_fd() argument
1173 if (fds[slot].fd != fd) in afterpoll_check_fd()
1177 assert(poller->fds_changed || !(fds[slot].revents & POLLNVAL)); in afterpoll_check_fd()
1180 int slot_revents = fds[slot].revents & events; in afterpoll_check_fd()
1204 int nfds, const struct pollfd *fds, in afterpoll_internal() argument
1256 revents = afterpoll_check_fd(poller,fds,nfds, in afterpoll_internal()
1268 if (afterpoll_check_fd(poller,fds,nfds, poller->wakeup_pipe[0],POLLIN)) { in afterpoll_internal()
1289 void libxl_osevent_afterpoll(libxl_ctx *ctx, int nfds, const struct pollfd *fds, in libxl_osevent_afterpoll() argument
1294 afterpoll_internal(egc, ctx->poller_app, nfds, fds, now); in libxl_osevent_afterpoll()
1534 void libxl__pipe_close(int fds[2]) in libxl__pipe_close()
1536 if (fds[0] >= 0) close(fds[0]); in libxl__pipe_close()
1537 if (fds[1] >= 0) close(fds[1]); in libxl__pipe_close()
1538 fds[0] = fds[1] = -1; in libxl__pipe_close()
1541 int libxl__pipe_nonblock(libxl_ctx *ctx, int fds[2]) in libxl__pipe_nonblock()
1545 r = libxl_pipe(ctx, fds); in libxl__pipe_nonblock()
1547 fds[0] = fds[1] = -1; in libxl__pipe_nonblock()
1552 rc = libxl_fd_set_nonblock(ctx, fds[0], 1); in libxl__pipe_nonblock()
1555 rc = libxl_fd_set_nonblock(ctx, fds[1], 1); in libxl__pipe_nonblock()
1561 libxl__pipe_close(fds); in libxl__pipe_nonblock()