Lines Matching refs:fd
501 fd), epoll scales either O(1) or O(active_fds).
540 i.e. keep at least one watcher active per fd at all times. Stopping and
577 might have to leak fd's on fork, but it's more sane than epoll) and it
873 - Queue all outstanding I/O (fd) events.
1235 example it might indicate that a fd is readable or writable, and if your
1238 programs, though, as the fd could already be closed and reused for another
1590 fd as you want (as long as you don't confuse yourself). Setting all file
1602 If you cannot run the fd in non-blocking mode (for example you should
1724 the C<ev_io> watcher on the listening fd "for a while", which reduces CPU
1730 close that fd, and create a new dummy fd. This will gracefully refuse
1741 =item ev_io_init (ev_io *, callback, int fd, int events)
1743 =item ev_io_set (ev_io *, int fd, int events)
1745 Configures an C<ev_io> watcher. The C<fd> is the file descriptor to
1749 =item int fd [read-only]
1769 .. read from stdin here (or from w->fd) and handle any I/O errors
3022 // create io watchers for each fd and a timer before blocking
3038 ev_io_init (iow + i, io_cb, fds [i].fd,
3057 struct pollfd *fd = fds + i;
3059 if (revents & EV_READ ) fd->revents |= fd->events & POLLIN;
3060 if (revents & EV_WRITE) fd->revents |= fd->events & POLLOUT;
3091 if (revents & EV_READ ) adns_processreadable (ads, w->fd, &tv_now);
3092 if (revents & EV_WRITE) adns_processwriteable (ads, w->fd, &tv_now);
3522 =item ev_once (loop, int fd, int events, ev_tstamp timeout, callback)
3526 watchers. This is useful if you want to wait for a single event on an fd
3530 If C<fd> is less than 0, then no I/O watcher will be started and the
3532 the given C<fd> and C<events> set will be created and started.
3557 =item ev_feed_fd_event (loop, int fd, int revents)
3559 Feed an event on the given fd, as if a file descriptor backend detected
3595 ev_io_init (&w.io, my_cb, fd, EV_READ);
4186 myclass (int fd)
4192 io.set (fd, ev::WRITE); // configure the watcher
4195 io2.start (fd, ev::READ); // set + start in one call
4547 C<_get_osfhandle> on the fd to convert it to an OS handle. Otherwise,
4551 =item EV_FD_TO_WIN32_HANDLE(fd)
4563 their own fd to handle mapping, overwriting this function makes it easier
4566 =item EV_WIN32_CLOSE_FD(fd)
4568 If programs implement their own fd to handle mapping on win32, then this
4603 out whether kqueue supports your type of fd properly and use an embedded
5261 Note that winsockets handling of fd sets is O(n), so you can easily get a
5286 you need to wrap all I/O functions and provide your own fd management, but
5387 =item Stopping an io/signal/child watcher: O(number_of_watchers_for_this_(fd/signal/pid % EV_PID_HA…
5391 have many watchers waiting for the same fd or signal: one is typical, two