Lines Matching refs:pollfd
885 void nsos_adapt_poll_add(struct nsos_mid_pollfd *pollfd) in nsos_adapt_poll_add() argument
888 .data.ptr = pollfd, in nsos_adapt_poll_add()
889 .events = nsos_poll_to_epoll_events(pollfd->events), in nsos_adapt_poll_add()
895 err = epoll_ctl(nsos_epoll_fd, EPOLL_CTL_ADD, pollfd->fd, &ev); in nsos_adapt_poll_add()
905 void nsos_adapt_poll_remove(struct nsos_mid_pollfd *pollfd) in nsos_adapt_poll_remove() argument
909 err = epoll_ctl(nsos_epoll_fd, EPOLL_CTL_DEL, pollfd->fd, NULL); in nsos_adapt_poll_remove()
918 void nsos_adapt_poll_update(struct nsos_mid_pollfd *pollfd) in nsos_adapt_poll_update() argument
920 struct pollfd fds = { in nsos_adapt_poll_update()
921 .fd = pollfd->fd, in nsos_adapt_poll_update()
922 .events = pollfd->events, in nsos_adapt_poll_update()
933 pollfd->revents = fds.revents; in nsos_adapt_poll_update()
1161 struct nsos_mid_pollfd *pollfd = events[i].data.ptr; in nsos_adapt_poll_triggered() local
1163 pollfd->revents = nsos_epoll_to_poll_events(events[i].events); in nsos_adapt_poll_triggered()