/Zephyr-Core-3.5.0/samples/net/sockets/echo_client/src/ |
D | echo-client.c | 91 static APP_BMEM int nfds; variable 101 fds[nfds].fd = conf.ipv4.udp.sock; in prepare_fds() 102 fds[nfds].events = POLLIN; in prepare_fds() 103 nfds++; in prepare_fds() 107 fds[nfds].fd = conf.ipv4.tcp.sock; in prepare_fds() 108 fds[nfds].events = POLLIN; in prepare_fds() 109 nfds++; in prepare_fds() 113 fds[nfds].fd = conf.ipv6.udp.sock; in prepare_fds() 114 fds[nfds].events = POLLIN; in prepare_fds() 115 nfds++; in prepare_fds() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | socket_select.h | 45 __syscall int zsock_select(int nfds, zsock_fd_set *readfds, 114 static inline int select(int nfds, zsock_fd_set *readfds, in select() argument 118 return zsock_select(nfds, readfds, writefds, exceptfds, timeout); in select()
|
D | sntp.h | 28 int nfds; member
|
D | socket.h | 533 __syscall int zsock_poll(struct zsock_pollfd *fds, int nfds, int timeout); 866 static inline int poll(struct zsock_pollfd *fds, int nfds, int timeout) in poll() argument 868 return zsock_poll(fds, nfds, timeout); in poll()
|
/Zephyr-Core-3.5.0/include/zephyr/posix/ |
D | poll.h | 25 static inline int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument 27 return zsock_poll(fds, nfds, timeout); in poll()
|
/Zephyr-Core-3.5.0/include/zephyr/posix/sys/ |
D | select.h | 27 static inline int select(int nfds, fd_set *readfds, in select() argument 31 return zsock_select(nfds, readfds, writefds, exceptfds, in select()
|
/Zephyr-Core-3.5.0/tests/net/lib/mqtt_publisher/src/ |
D | test_mqtt_publish.c | 31 static int nfds; variable 58 nfds = 1; in prepare_fds() 63 nfds = 0; in clear_fds() 68 if (nfds > 0) { in wait() 69 if (zsock_poll(fds, nfds, timeout) < 0) { in wait()
|
/Zephyr-Core-3.5.0/tests/net/lib/mqtt_subscriber/src/ |
D | test_mqtt_subscribe.c | 27 static int nfds; variable 54 nfds = 1; in prepare_fds() 59 nfds = 0; in clear_fds() 64 if (nfds > 0) { in wait() 65 if (zsock_poll(fds, nfds, timeout) < 0) { in wait()
|
/Zephyr-Core-3.5.0/subsys/net/lib/sntp/ |
D | sntp.c | 109 status = zsock_poll(sntp->sock.fds, sntp->sock.nfds, timeout); in sntp_recv_response() 166 ctx->sock.fds[ctx->sock.nfds].fd = ctx->sock.fd; in sntp_init() 167 ctx->sock.fds[ctx->sock.nfds].events = ZSOCK_POLLIN; in sntp_init() 168 ctx->sock.nfds++; in sntp_init()
|
/Zephyr-Core-3.5.0/tests/net/lib/mqtt_pubsub/src/ |
D | test_mqtt_pubsub.c | 27 static int nfds; variable 84 nfds = 1; in prepare_fds() 89 nfds = 0; in clear_fds() 94 if (nfds > 0) { in wait() 95 if (zsock_poll(fds, nfds, timeout) < 0) { in wait()
|
/Zephyr-Core-3.5.0/samples/net/cloud/mqtt_azure/src/ |
D | main.c | 38 static int nfds; variable 95 nfds = 1; in prepare_fds() 100 nfds = 0; in clear_fds() 107 if (nfds <= 0) { in wait() 111 rc = zsock_poll(fds, nfds, timeout); in wait()
|
/Zephyr-Core-3.5.0/tests/net/lib/coap_client/src/ |
D | stubs.c | 42 int z_impl_zsock_poll(struct zsock_pollfd *fds, int nfds, int poll_timeout) in z_impl_zsock_poll() argument
|
/Zephyr-Core-3.5.0/subsys/net/lib/sockets/ |
D | sockets_select.c | 71 int z_impl_zsock_select(int nfds, zsock_fd_set *readfds, zsock_fd_set *writefds, in z_impl_zsock_select() argument 208 static int z_vrfy_zsock_select(int nfds, zsock_fd_set *readfds, in z_vrfy_zsock_select() argument 254 ret = z_impl_zsock_select(nfds, readfds_copy, writefds_copy, in z_vrfy_zsock_select()
|
D | sockets_internal.h | 19 int zsock_poll_internal(struct zsock_pollfd *fds, int nfds, k_timeout_t timeout);
|
/Zephyr-Core-3.5.0/samples/net/mqtt_publisher/src/ |
D | main.c | 54 static APP_BMEM int nfds; variable 120 nfds = 1; in prepare_fds() 125 nfds = 0; in clear_fds() 132 if (nfds > 0) { in wait() 133 ret = zsock_poll(fds, nfds, timeout); in wait()
|
/Zephyr-Core-3.5.0/samples/net/sockets/coap_client/src/ |
D | coap-client.c | 30 static int nfds; variable 45 if (poll(fds, nfds, -1) < 0) { in wait() 52 fds[nfds].fd = sock; in prepare_fds() 53 fds[nfds].events = POLLIN; in prepare_fds() 54 nfds++; in prepare_fds()
|
/Zephyr-Core-3.5.0/drivers/modem/ |
D | modem_socket.c | 265 int modem_socket_poll(struct modem_socket_config *cfg, struct zsock_pollfd *fds, int nfds, in modem_socket_poll() argument 272 if (!cfg || nfds > CONFIG_NET_SOCKETS_POLL_MAX) { in modem_socket_poll() 275 struct k_poll_event events[nfds]; in modem_socket_poll() 278 for (i = 0; i < nfds; i++) { in modem_socket_poll() 312 for (i = 0; i < nfds; i++) { in modem_socket_poll()
|
D | modem_socket.h | 80 int modem_socket_poll(struct modem_socket_config *cfg, struct zsock_pollfd *fds, int nfds,
|
/Zephyr-Core-3.5.0/subsys/mgmt/updatehub/ |
D | updatehub.c | 72 int nfds; member 102 if (poll(ctx.fds, ctx.nfds, NETWORK_TIMEOUT) < 0) { in wait_fds() 109 ctx.fds[ctx.nfds].fd = ctx.sock; in prepare_fds() 110 ctx.fds[ctx.nfds].events = POLLIN; in prepare_fds() 111 ctx.nfds++; in prepare_fds() 160 for (i = 0; i < ctx.nfds; i++) { in cleanup_connection() 164 ctx.nfds = 0; in cleanup_connection() 812 ctx.nfds = 0; in z_impl_updatehub_probe()
|
/Zephyr-Core-3.5.0/include/zephyr/shell/ |
D | shell_mqtt.h | 74 int nfds; member
|
/Zephyr-Core-3.5.0/drivers/wifi/eswifi/ |
D | eswifi_socket_offload.c | 466 static int eswifi_socket_poll(struct zsock_pollfd *fds, int nfds, int msecs) in eswifi_socket_poll() argument 473 if (nfds != 1) { in eswifi_socket_poll() 615 int nfds; in eswifi_socket_ioctl() local 619 nfds = va_arg(args, int); in eswifi_socket_ioctl() 622 return eswifi_socket_poll(fds, nfds, timeout); in eswifi_socket_ioctl()
|
/Zephyr-Core-3.5.0/drivers/wifi/simplelink/ |
D | simplelink_sockets.c | 559 static int simplelink_poll(struct zsock_pollfd *fds, int nfds, int msecs) in simplelink_poll() argument 568 if (nfds > SL_FD_SETSIZE) { in simplelink_poll() 586 for (i = 0; i < nfds; i++) { in simplelink_poll() 618 for (i = 0; i < nfds; i++) { in simplelink_poll() 1191 int nfds; in simplelink_ioctl() local 1195 nfds = va_arg(args, int); in simplelink_ioctl() 1198 return simplelink_poll(fds, nfds, timeout); in simplelink_ioctl()
|
/Zephyr-Core-3.5.0/subsys/net/lib/websocket/ |
D | websocket.c | 449 static inline int websocket_poll_offload(struct zsock_pollfd *fds, int nfds, in websocket_poll_offload() argument 459 for (i = 0; i < nfds; i++) { in websocket_poll_offload() 484 fds, nfds, timeout); in websocket_poll_offload() 488 for (i = 0; i < nfds; i++) { in websocket_poll_offload() 502 int nfds; in websocket_ioctl_vmeth() local 506 nfds = va_arg(args, int); in websocket_ioctl_vmeth() 509 return websocket_poll_offload(fds, nfds, timeout); in websocket_ioctl_vmeth()
|
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/lwm2m_engine/src/ |
D | stubs.c | 123 int z_impl_zsock_poll(struct zsock_pollfd *fds, int nfds, int poll_timeout) in z_impl_zsock_poll() argument
|
/Zephyr-Core-3.5.0/subsys/net/lib/coap/ |
D | coap_client.c | 441 int nfds = 0; in handle_poll() local 448 nfds++; in handle_poll() 451 ret = zsock_poll(fds, nfds, COAP_PERIODIC_TIMEOUT); in handle_poll() 470 for (int i = 0; i < nfds; i++) { in handle_poll()
|