Home
last modified time | relevance | path

Searched refs:pollfd (Results 1 – 25 of 28) sorted by relevance

12

/Zephyr-latest/tests/posix/headers/src/
Dpoll_h.c22 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/
Dpoll.h17 #define pollfd zsock_pollfd macro
26 int poll(struct pollfd *fds, int nfds, int timeout);
/Zephyr-latest/subsys/shell/backends/
Dshell_telnet.c269 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 …]
Dshell_websocket.c113 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/
Dnsos.h157 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);
Dnsos_adapt.c885 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/
DTFDServer.cpp55 array<pollfd, 2> pollfds = { in read_virt()
56 (pollfd){ in read_virt()
61 (pollfd){ in read_virt()
/Zephyr-latest/subsys/net/lib/ptp/
Dclock.c46 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/
Dmain.c25 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/
Dmqtt_sn_transport_udp.c223 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/
Dmain.c163 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/
Dzperf_tcp_receiver.c244 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/
Duserchan.c184 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.c19 struct pollfd pfd; in is_blocked()
Dblocking.c53 struct pollfd pfd; in ZTEST_F()
/Zephyr-latest/subsys/modem/backends/
Dmodem_backend_tty.c26 struct pollfd pd; in modem_backend_tty_routine()
/Zephyr-latest/drivers/serial/
Duart_native_ptty_bottom.c85 struct pollfd pfd = { .fd = fd, .events = POLLHUP }; in np_uart_slave_connected()
Duart_native_tty_bottom.c180 struct pollfd pfd = { .fd = fd, .events = POLLIN }; in native_tty_poll_bottom()
/Zephyr-latest/lib/posix/options/
Ddevice_io.c79 int poll(struct pollfd *fds, int nfds, int timeout) in poll()
/Zephyr-latest/tests/net/socket/tls_configurations/src/
Dmain.c61 static struct pollfd fds[1];
/Zephyr-latest/samples/net/sockets/echo_async/src/
Dsocket_echo.c47 struct pollfd pollfds[NUM_FDS];
/Zephyr-latest/samples/net/sockets/http_server/src/
Dws.c66 struct pollfd fds[1];
/Zephyr-latest/samples/net/sockets/echo_client/src/
Decho-client.c72 static APP_BMEM struct pollfd fds[1 + 4];
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/src/
Dmain.c365 struct pollfd fds; in aws_client_loop()
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c38 static struct pollfd fds[1];

12