Home
last modified time | relevance | path

Searched refs:nfds (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-Core-3.5.0/samples/net/sockets/echo_client/src/
Decho-client.c91 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/
Dsocket_select.h45 __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()
Dsntp.h28 int nfds; member
Dsocket.h533 __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/
Dpoll.h25 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/
Dselect.h27 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/
Dtest_mqtt_publish.c31 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/
Dtest_mqtt_subscribe.c27 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/
Dsntp.c109 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/
Dtest_mqtt_pubsub.c27 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/
Dmain.c38 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/
Dstubs.c42 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/
Dsockets_select.c71 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()
Dsockets_internal.h19 int zsock_poll_internal(struct zsock_pollfd *fds, int nfds, k_timeout_t timeout);
/Zephyr-Core-3.5.0/samples/net/mqtt_publisher/src/
Dmain.c54 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/
Dcoap-client.c30 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/
Dmodem_socket.c265 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()
Dmodem_socket.h80 int modem_socket_poll(struct modem_socket_config *cfg, struct zsock_pollfd *fds, int nfds,
/Zephyr-Core-3.5.0/subsys/mgmt/updatehub/
Dupdatehub.c72 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/
Dshell_mqtt.h74 int nfds; member
/Zephyr-Core-3.5.0/drivers/wifi/eswifi/
Deswifi_socket_offload.c466 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/
Dsimplelink_sockets.c559 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/
Dwebsocket.c449 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/
Dstubs.c123 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/
Dcoap_client.c441 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()

12