/Zephyr-latest/tests/posix/headers/src/ |
D | poll_h.c | 22 zassert_not_equal(-1, offsetof(struct pollfd, fd)); in ZTEST() 23 zassert_not_equal(-1, offsetof(struct pollfd, events)); in ZTEST() 24 zassert_not_equal(-1, offsetof(struct pollfd, revents)); in ZTEST()
|
/Zephyr-latest/include/zephyr/posix/ |
D | poll.h | 17 #define pollfd zsock_pollfd macro 26 int poll(struct pollfd *fds, int nfds, int timeout);
|
/Zephyr-latest/subsys/shell/backends/ |
D | shell_telnet.c | 269 static void telnet_recv(struct zsock_pollfd *pollfd) in telnet_recv() argument 289 ret = zsock_recv(pollfd->fd, buf, buf_left, 0); in telnet_recv() 411 static void telnet_accept(struct zsock_pollfd *pollfd) in telnet_accept() argument 417 sock = zsock_accept(pollfd->fd, &addr, &addrlen); in telnet_accept() 509 static int telnet_setup_server(struct zsock_pollfd *pollfd, sa_family_t family, in telnet_setup_server() argument 514 pollfd->fd = zsock_socket(family, SOCK_STREAM, IPPROTO_TCP); in telnet_setup_server() 515 if (pollfd->fd < 0) { in telnet_setup_server() 522 if (zsock_bind(pollfd->fd, addr, addrlen) < 0) { in telnet_setup_server() 529 if (zsock_listen(pollfd->fd, 1)) { in telnet_setup_server() 536 pollfd->events = ZSOCK_POLLIN; in telnet_setup_server() [all …]
|
D | shell_websocket.c | 113 static void ws_recv(struct shell_websocket *ws, struct zsock_pollfd *pollfd) in ws_recv() argument 131 ret = zsock_recv(pollfd->fd, buf, buf_left, 0); in ws_recv()
|
/Zephyr-latest/drivers/net/ |
D | nsos.h | 157 void nsos_adapt_poll_add(struct nsos_mid_pollfd *pollfd); 158 void nsos_adapt_poll_remove(struct nsos_mid_pollfd *pollfd); 159 void nsos_adapt_poll_update(struct nsos_mid_pollfd *pollfd);
|
D | nsos_adapt.c | 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() [all …]
|
/Zephyr-latest/modules/thrift/src/thrift/server/ |
D | TFDServer.cpp | 55 array<pollfd, 2> pollfds = { in read_virt() 56 (pollfd){ in read_virt() 61 (pollfd){ in read_virt()
|
/Zephyr-latest/subsys/net/lib/ptp/ |
D | clock.c | 46 struct zsock_pollfd pollfd[1 + 2 * CONFIG_PTP_NUM_PORTS]; member 228 struct zsock_pollfd *fd = &ptp_clk.pollfd[1]; in clock_check_pollfd() 288 ptp_clk.pollfd[0].fd = eventfd(0, EFD_NONBLOCK); in ptp_clock_init() 289 ptp_clk.pollfd[0].events = ZSOCK_POLLIN; in ptp_clock_init() 301 ret = zsock_poll(ptp_clk.pollfd, PTP_SOCKET_CNT * ptp_clk.default_ds.n_ports + 1, -1); in ptp_clock_poll_sockets() 302 if (ret > 0 && ptp_clk.pollfd[0].revents) { in ptp_clock_poll_sockets() 305 eventfd_read(ptp_clk.pollfd[0].fd, &value); in ptp_clock_poll_sockets() 308 return &ptp_clk.pollfd[1]; in ptp_clock_poll_sockets() 640 eventfd_write(ptp_clk.pollfd[0].fd, 1); in ptp_clock_signal_timeout()
|
/Zephyr-latest/samples/net/sockets/echo_service/src/ |
D | main.c | 25 static struct pollfd sockfd_udp[1] = { 28 static struct pollfd sockfd_tcp[1] = { 62 struct pollfd *pfd = &pev->event; in receive_data()
|
/Zephyr-latest/subsys/net/lib/mqtt_sn/ |
D | mqtt_sn_transport_udp.c | 223 struct zsock_pollfd pollfd = { in tp_udp_poll() local 228 rc = zsock_poll(&pollfd, 1, 0); in tp_udp_poll() 233 LOG_DBG("revents %d", pollfd.revents & ZSOCK_POLLIN); in tp_udp_poll() 235 return pollfd.revents & ZSOCK_POLLIN; in tp_udp_poll()
|
/Zephyr-latest/samples/net/sockets/socketpair/src/ |
D | main.c | 163 static void setup_poll(const struct context *ctx, struct pollfd *fds, size_t n) in setup_poll() 172 static int handle_poll_events(const struct context *ctx, struct pollfd *fds, size_t n, in handle_poll_events() 228 struct pollfd fds[NUM_SOCKETPAIRS] = {}; in main()
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_tcp_receiver.c | 244 static int tcp_bind_listen_connection(struct zsock_pollfd *pollfd, in tcp_bind_listen_connection() argument 256 ret = zsock_bind(pollfd->fd, address, sizeof(*address)); in tcp_bind_listen_connection() 263 ret = zsock_listen(pollfd->fd, 1); in tcp_bind_listen_connection() 270 pollfd->events = ZSOCK_POLLIN; in tcp_bind_listen_connection()
|
/Zephyr-latest/drivers/bluetooth/hci/ |
D | userchan.c | 184 struct pollfd pollfd = { .fd = fd, .events = POLLIN }; in uc_ready() local 186 return (poll(&pollfd, 1, 0) == 1); in uc_ready()
|
/Zephyr-latest/tests/posix/eventfd/src/ |
D | _main.c | 19 struct pollfd pfd; in is_blocked()
|
D | blocking.c | 53 struct pollfd pfd; in ZTEST_F()
|
/Zephyr-latest/subsys/modem/backends/ |
D | modem_backend_tty.c | 26 struct pollfd pd; in modem_backend_tty_routine()
|
/Zephyr-latest/drivers/serial/ |
D | uart_native_ptty_bottom.c | 85 struct pollfd pfd = { .fd = fd, .events = POLLHUP }; in np_uart_slave_connected()
|
D | uart_native_tty_bottom.c | 180 struct pollfd pfd = { .fd = fd, .events = POLLIN }; in native_tty_poll_bottom()
|
/Zephyr-latest/lib/posix/options/ |
D | device_io.c | 79 int poll(struct pollfd *fds, int nfds, int timeout) in poll()
|
/Zephyr-latest/tests/net/socket/tls_configurations/src/ |
D | main.c | 61 static struct pollfd fds[1];
|
/Zephyr-latest/samples/net/sockets/echo_async/src/ |
D | socket_echo.c | 47 struct pollfd pollfds[NUM_FDS];
|
/Zephyr-latest/samples/net/sockets/http_server/src/ |
D | ws.c | 66 struct pollfd fds[1];
|
/Zephyr-latest/samples/net/sockets/echo_client/src/ |
D | echo-client.c | 72 static APP_BMEM struct pollfd fds[1 + 4];
|
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/ |
D | main.c | 365 struct pollfd fds; in aws_client_loop()
|
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/ |
D | main.c | 38 static struct pollfd fds[1];
|