Lines Matching defs:events
3050 sopoll(struct socket *so, int events, struct ucred *active_cred,
3058 return (so->so_proto->pr_usrreqs->pru_sopoll(so, events, active_cred,
3063 sopoll_generic(struct socket *so, int events, struct ucred *active_cred,
3070 if (events & (POLLIN | POLLRDNORM))
3072 revents |= events & (POLLIN | POLLRDNORM);
3074 if (events & (POLLOUT | POLLWRNORM))
3076 revents |= events & (POLLOUT | POLLWRNORM);
3078 if (events & (POLLPRI | POLLRDBAND))
3080 revents |= events & (POLLPRI | POLLRDBAND);
3082 if ((events & POLLINIGNEOF) == 0) {
3084 revents |= events & (POLLIN | POLLRDNORM);
3091 if (events & (POLLIN | POLLPRI | POLLRDNORM | POLLRDBAND)) {
3096 if (events & (POLLOUT | POLLWRNORM)) {
3299 pru_sopoll_notsupp(struct socket *so, int events, struct ucred *cred,
3409 * consumers) of state changes in the sockets driven by protocol-side events.