Lines Matching refs:events

617 	 * Copy out the events and return the fdcnt to the user.
758 * Multiple events may be specified. When POLLHUP or POLLERR are specified,
768 int events = (ushort_t)events_arg;
780 if ((pdp->pd_events & events) ||
781 (events & (POLLHUP | POLLERR))) {
797 pkevp->portkev_events |= events &
914 events = plhead->pevents;
937 * by pollwakeup to wake sleeping pollers when polled events has happened.
996 * Since the events field of cached list has illegal poll events filtered
1015 * Filter out invalid poll events while we are in
1018 if (current[ix].events & ~VALID_POLL_EVENTS) {
1019 current[ix].events &= VALID_POLL_EVENTS;
1021 newlist[ix].events = current[ix].events;
1023 if (current[ix].events == cached[ix].events) {
1270 * is no polled events, we want the polled device to set its "some
1271 * one is sleeping in poll" flag. When the polled events happen
1275 * polled events exist. If a driver chooses to ignore this parameter
1276 * and call pollwakeup whenever the polled events happen, that will
1280 error = VOP_POLL(fp->f_vnode, pollfdp->events, 0, &pollfdp->revents,
1332 * XXX pd_events is a union of all polled events on this fd, possibly
1337 * assumption is an app always polls the same type of events.
1339 pdp->pd_events |= pollfdp->events;
1395 * miss a pollwakeup. In the case of polling additional events, we
1396 * don't update the events until after VOP_POLL. So we could miss
1610 (current[count].events != cached[count].events));
1612 * Filter out invalid events.
1614 if (current[count].events & ~VALID_POLL_EVENTS) {
1616 newlist[count].events =
1617 current[count].events &=
1620 current[count].events &=
1631 (uint_t)cached[count].events)) {
1722 newlist[count].events =
1723 current[count].events;
1726 cached[count].events =
1727 current[count].events;
1750 /* filter out invalid events */
1751 if (current[i].events & ~VALID_POLL_EVENTS) {
1752 newlist[i].events = current[i].events =
1753 current[i].events & VALID_POLL_EVENTS;
1892 * only poll fds which may have events
1986 * no polled events.
1988 * Use pollfdp[].events for actual polling because
1989 * the pd_events is union of all cached poll events
1990 * on this fd. The events parameter also affects
1995 error = VOP_POLL(fp->f_vnode, pollfdp[entry].events, 0,
2052 * entry is polling different events on this fd.
2058 (pollfdp[entry].events == pdp->pd_events) &&
2147 * We also filter out the illegal poll events in the event
2150 if (pollfdp[i].events & ~VALID_POLL_EVENTS) {
2151 newfdlist[i].events = pollfdp[i].events =
2152 pollfdp[i].events & VALID_POLL_EVENTS;
2189 * called by pollcacheclean() to set the fp NULL. It also sets polled events
2190 * in pcacheset entries to a special events 'POLLCLOSED'. Do a pollwakeup to
2230 pcsp->pcs_pollfd[refp->xf_position].events =
2241 pcsp->pcs_pollfd[j].events =
2518 * the pcacheset events field POLLCLOSED to force the next poll() to remove
2695 (uint_t)pollfdp[i].events)) {
2993 * VOP_POLL the same fd again using different poll events. getf() has been
3010 if (pollfdp[i].events == pollfdp[entry].events) {
3022 * the events are different. VOP_POLL on this
3028 pollfdp[i].events, 0,