Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 17 of 17) sorted by relevance

/xnu-12377.61.12/tests/
H A Dpoll.c31 struct pollfd pfd = { .fd = 0, .events = 0, .revents = 0 };
72 T_QUIET; T_EXPECT_TRUE(pfd[0].revents & POLLNVAL,
76 pfd[0].fd = file; pfd[0].revents = 0;
77 pfd[1].fd = dir; pfd[1].revents = 0;
80 T_QUIET; T_EXPECT_TRUE(pfd[0].revents & POLLIN, "file should be readable");
81 T_QUIET; T_EXPECT_TRUE(pfd[1].revents & POLLNVAL,
85 pfd[0].fd = dir; pfd[0].revents = 0;
86 pfd[1].fd = file; pfd[1].revents = 0;
89 T_QUIET; T_EXPECT_TRUE(pfd[0].revents & POLLNVAL,
91 T_QUIET; T_EXPECT_TRUE(pfd[1].revents & POLLIN, "file should be readable");
[all …]
H A Duipc_sosendcheck.c63 if (!(pfd[0].revents & POLLOUT)) { in do_send()
H A Dpoll_select_kevent_paired_fds.c567 fds[0].revents = 0; in read_from_fd()
574 T_QUIET; T_ASSERT_FALSE(fds[0].revents & POLLERR, in read_from_fd()
576 T_QUIET; T_ASSERT_FALSE(fds[0].revents & POLLNVAL, in read_from_fd()
/xnu-12377.61.12/tests/skywalk/
H A Dskt_shutdown.c100 fds.revents = sock_fds.revents = 0; in skt_shutdown_common()
105 sock_fds.revents); in skt_shutdown_common()
110 assert((sock_fds.revents & POLLHUP) != 0); in skt_shutdown_common()
115 " revents(0x%x)\n", error, fds.events, fds.revents); in skt_shutdown_common()
121 assert(fds.revents == sock_fds.revents); in skt_shutdown_common()
267 fds.revents = sock_fds.revents = 0; in skt_shutdown_common()
272 sock_fds.revents); in skt_shutdown_common()
277 assert((sock_fds.revents & POLLHUP) != 0); in skt_shutdown_common()
282 " revents(0x%x)\n", error, fds.events, fds.revents); in skt_shutdown_common()
288 assert(fds.revents == sock_fds.revents); in skt_shutdown_common()
H A Dskt_badring.c105 fds.revents = 0; in skt_badringtx_common()
117 …T_LOG("events 0x%x revents 0x%x check 0x%x\n", fds.events, fds.revents, (POLLWRNORM | POLLWRBAND |… in skt_badringtx_common()
118 assert(fds.revents == POLLNVAL); in skt_badringtx_common()
224 fds.revents = 0; in skt_badringrx_common()
236 T_LOG("events 0x%x revents 0x%x\n", fds.events, fds.revents); in skt_badringrx_common()
237 assert(fds.revents == POLLNVAL); in skt_badringrx_common()
H A Dskt_oneslot.c102 fds.revents = 0; in skt_oneslot_common()
108 assert(fds.revents == POLLWRNORM); in skt_oneslot_common()
165 fds.revents = 0; in skt_oneslot_common()
171 assert(fds.revents == POLLRDNORM); in skt_oneslot_common()
H A Dskt_shutdown2.c101 fds.revents = 0; in skt_shutdown2_common()
107 assert(fds.revents == (POLLRDNORM | POLLHUP)); in skt_shutdown2_common()
H A Dskt_nslots.c149 assert(fds.revents == POLLWRNORM); in skt_nslots_common()
219 assert(fds.revents == POLLRDNORM); in skt_nslots_common()
H A Dskywalk_test_utils.c1022 assert(fds.revents == POLLWRNORM); in sktc_pump_ring_nslots_poll()
1025 assert(fds.revents == POLLRDNORM); in sktc_pump_ring_nslots_poll()
/xnu-12377.61.12/bsd/skywalk/channel/
H A Dchannel.c601 int revents; in filt_chtouch() local
632 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, NULL, TRUE, in filt_chtouch()
636 if (revents & POLLERR) { in filt_chtouch()
645 return (events & revents) != 0; in filt_chtouch()
688 int revents; in filt_chprocess() local
699 revents = ch_event(ch, events, NULL, knote_get_kq(kn)->kq_p, &result, in filt_chprocess()
702 if (revents & POLLERR) { in filt_chprocess()
714 trigger_event = (events & revents) != 0; in filt_chprocess()
773 int revents; in filt_chrwattach() local
820 revents = events; in filt_chrwattach()
[all …]
H A Dchannel_syscalls.c78 int revents = 0, events = 0; in chop_select() local
104 revents = ch_select(ch, events, wql, vfs_context_proc(ctx)); in chop_select()
105 return (events & revents) ? 1 : 0; in chop_select()
/xnu-12377.61.12/bsd/sys/
H A Dpoll.h99 short revents; member
/xnu-12377.61.12/bsd/kern/
H A Dsys_generic.c1742 fds[i].revents = 0; in poll_nocancel()
1793 fds[i].revents = POLLNVAL; in poll_nocancel()
1796 fds[i].revents = 0; in poll_nocancel()
1859 short prev_revents = fds->revents; in poll_callback()
1864 fds->revents |= POLLHUP; in poll_callback()
1867 fds->revents |= POLLERR; in poll_callback()
1872 if (fds->revents & POLLHUP) { in poll_callback()
1880 fds->revents |= (fds->events & mask); in poll_callback()
1884 if (!(fds->revents & POLLHUP)) { in poll_callback()
1885 fds->revents |= (fds->events & (POLLOUT | POLLWRNORM | POLLWRBAND)); in poll_callback()
[all …]
H A Duipc_socket.c6441 int revents = 0; in sopoll() local
6449 revents |= events & (POLLIN | POLLRDNORM); in sopoll()
6455 revents |= events & (POLLOUT | POLLWRNORM); in sopoll()
6461 revents |= events & (POLLPRI | POLLRDBAND); in sopoll()
6465 if (revents == 0) { in sopoll()
6486 return revents; in sopoll()
/xnu-12377.61.12/bsd/security/audit/
H A Daudit_pipe.c1061 int revents; in audit_pipe_poll() local
1063 revents = 0; in audit_pipe_poll()
1070 revents |= events & (POLLIN | POLLRDNORM); in audit_pipe_poll()
1076 return revents; in audit_pipe_poll()
H A Daudit_session.c1960 int revents; in audit_sdev_poll() local
1962 revents = 0; in audit_sdev_poll()
1969 revents |= events & (POLLIN | POLLRDNORM); in audit_sdev_poll()
1975 return revents; in audit_sdev_poll()
/xnu-12377.61.12/bsd/net/
H A Dnecp_client.c947 u_int revents = 0; in necp_fd_poll() local
954 revents |= want_rx; in necp_fd_poll()
972 revents |= want_rx; in necp_fd_poll()
977 return revents; in necp_fd_poll()
1095 int revents = 0; in necpop_select() local
1118 revents = necp_fd_poll(fd_data, events, wql, procp, 0); in necpop_select()
1121 return (events & revents) ? 1 : 0; in necpop_select()
1146 int revents; in necp_fd_knrprocess() local
1152 revents = necp_fd_poll(fd_data, POLLIN, NULL, current_proc(), 1); in necp_fd_knrprocess()
1153 res = ((revents & POLLIN) != 0); in necp_fd_knrprocess()
[all …]