Lines Matching defs:pollcb
334 apr_pollcb_t *pollcb = (apr_pollcb_t *) p_;
335 close(pollcb->fd);
339 static apr_status_t impl_pollcb_create(apr_pollcb_t *pollcb,
364 pollcb->fd = -1;
372 pollcb->fd = -1;
378 pollcb->fd = fd;
379 pollcb->pollset.epoll = apr_palloc(p, size * sizeof(struct epoll_event));
380 apr_pool_cleanup_register(p, pollcb, cb_cleanup, apr_pool_cleanup_null);
385 static apr_status_t impl_pollcb_add(apr_pollcb_t *pollcb,
395 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_ADD,
399 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_ADD,
410 static apr_status_t impl_pollcb_remove(apr_pollcb_t *pollcb,
420 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_DEL,
424 ret = epoll_ctl(pollcb->fd, EPOLL_CTL_DEL,
436 static apr_status_t impl_pollcb_poll(apr_pollcb_t *pollcb,
448 ret = epoll_wait(pollcb->fd, pollcb->pollset.epoll, pollcb->nalloc,
458 apr_pollfd_t *pollfd = (apr_pollfd_t *)(pollcb->pollset.epoll[i].data.ptr);
459 pollfd->rtnevents = get_epoll_revent(pollcb->pollset.epoll[i].events);