Home
last modified time | relevance | path

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

12

/Zephyr-latest/samples/net/sockets/echo_client/src/
Decho-client.c73 static APP_BMEM int nfds; variable
85 nfds = 0; in prepare_fds()
88 fds[nfds].fd = eventfd(0, 0); in prepare_fds()
89 fds[nfds].events = POLLIN; in prepare_fds()
90 nfds++; in prepare_fds()
93 fds[nfds].fd = conf.ipv4.udp.sock; in prepare_fds()
94 fds[nfds].events = POLLIN; in prepare_fds()
95 nfds++; in prepare_fds()
99 fds[nfds].fd = conf.ipv4.tcp.sock; in prepare_fds()
100 fds[nfds].events = POLLIN; in prepare_fds()
[all …]
/Zephyr-latest/lib/os/zvfs/
Dzvfs_poll.c20 int zvfs_poll_internal(struct zvfs_pollfd *fds, int nfds, k_timeout_t timeout) in zvfs_poll_internal() argument
39 for (pfd = fds, i = nfds; i--; pfd++) { in zvfs_poll_internal()
103 nfds, poll_timeout); in zvfs_poll_internal()
120 for (pfd = fds, i = nfds; i--; pfd++) { in zvfs_poll_internal()
172 int z_impl_zvfs_poll(struct zvfs_pollfd *fds, int nfds, int poll_timeout) in z_impl_zvfs_poll() argument
182 return zvfs_poll_internal(fds, nfds, timeout); in z_impl_zvfs_poll()
186 static inline int z_vrfy_zvfs_poll(struct zvfs_pollfd *fds, int nfds, int timeout) in z_vrfy_zvfs_poll() argument
193 if (size_mul_overflow(nfds, sizeof(struct zvfs_pollfd), &fds_size)) { in z_vrfy_zvfs_poll()
203 ret = z_impl_zvfs_poll(fds_copy, nfds, timeout); in z_vrfy_zvfs_poll()
Dzvfs_select.c25 int zvfs_poll_internal(struct zvfs_pollfd *fds, int nfds, k_timeout_t timeout);
75 int z_impl_zvfs_select(int nfds, struct zvfs_fd_set *ZRESTRICT readfds, in z_impl_zvfs_select() argument
219 static int z_vrfy_zvfs_select(int nfds, struct zvfs_fd_set *ZRESTRICT readfds, in z_vrfy_zvfs_select() argument
264 ret = z_impl_zvfs_select(nfds, readfds_copy, writefds_copy, exceptfds_copy, to, sigmask); in z_vrfy_zvfs_select()
/Zephyr-latest/lib/posix/options/
Ddevice_io.c79 int poll(struct pollfd *fds, int nfds, int timeout) in poll() argument
81 return zvfs_poll(fds, nfds, timeout); in poll()
96 int pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in pselect() argument
99 return zvfs_select(nfds, readfds, writefds, exceptfds, timeout, sigmask); in pselect()
122 int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) in select() argument
128 return zvfs_select(nfds, readfds, writefds, exceptfds, (timeout == NULL) ? NULL : &to, in select()
/Zephyr-latest/include/zephyr/posix/sys/
Dselect.h22 int pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
24 int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout);
/Zephyr-latest/include/zephyr/net/
Dsocket_select.h49 static inline int zsock_select(int nfds, zsock_fd_set *readfds, zsock_fd_set *writefds, in zsock_select() argument
56 return zvfs_select(nfds, readfds, writefds, exceptfds, (timeout == NULL) ? NULL : &to, in zsock_select()
Dsntp.h47 int nfds; member
/Zephyr-latest/tests/net/lib/coap_client/src/
Dstubs.c37 int z_impl_zvfs_poll(struct zvfs_pollfd *fds, int nfds, int poll_timeout) in z_impl_zvfs_poll() argument
41 for (int i = 0; i < nfds; i++) { in z_impl_zvfs_poll()
/Zephyr-latest/include/zephyr/posix/
Dpoll.h26 int poll(struct pollfd *fds, int nfds, int timeout);
/Zephyr-latest/include/zephyr/sys/
Dfdtable.h224 __syscall int zvfs_poll(struct zvfs_pollfd *fds, int nfds, int poll_timeout);
238 __syscall int zvfs_select(int nfds, struct zvfs_fd_set *ZRESTRICT readfds,
/Zephyr-latest/samples/net/cloud/mqtt_azure/src/
Dmain.c39 static int nfds; variable
96 nfds = 1; in prepare_fds()
101 nfds = 0; in clear_fds()
108 if (nfds <= 0) { in wait()
112 rc = poll(fds, nfds, timeout); in wait()
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c31 static int nfds; variable
84 nfds = 1; in prepare_fds()
89 nfds = 0; in clear_fds()
254 if (nfds <= 0) { in poll_mqtt_socket()
258 rc = zsock_poll(fds, nfds, timeout); in poll_mqtt_socket()
/Zephyr-latest/subsys/net/lib/sntp/
Dsntp.c177 ctx->sock.fds[ctx->sock.nfds].fd = ctx->sock.fd; in sntp_init()
178 ctx->sock.fds[ctx->sock.nfds].events = ZSOCK_POLLIN; in sntp_init()
179 ctx->sock.nfds++; in sntp_init()
220 status = zsock_poll(ctx->sock.fds, ctx->sock.nfds, timeout); in sntp_recv_response()
/Zephyr-latest/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_ZVFS_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-latest/samples/net/mqtt_publisher/src/
Dmain.c55 static APP_BMEM int nfds; variable
121 nfds = 1; in prepare_fds()
126 nfds = 0; in clear_fds()
133 if (nfds > 0) { in wait()
134 ret = poll(fds, nfds, timeout); in wait()
/Zephyr-latest/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-latest/subsys/mgmt/updatehub/
Dupdatehub.c72 int nfds; member
102 if (zsock_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 = ZSOCK_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-latest/include/zephyr/shell/
Dshell_mqtt.h74 int nfds; member
/Zephyr-latest/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
474 if (nfds != 1) { in eswifi_socket_poll()
616 int nfds; in eswifi_socket_ioctl() local
620 nfds = va_arg(args, int); in eswifi_socket_ioctl()
623 return eswifi_socket_poll(fds, nfds, timeout); in eswifi_socket_ioctl()
/Zephyr-latest/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-latest/subsys/net/lib/coap/
Dcoap_client.c568 int nfds = 0; in handle_poll() local
579 fds[nfds].fd = clients[i]->fd; in handle_poll()
580 fds[nfds].events = events; in handle_poll()
581 fds[nfds].revents = 0; in handle_poll()
582 nfds++; in handle_poll()
585 ret = zsock_poll(fds, nfds, COAP_PERIODIC_TIMEOUT); in handle_poll()
595 for (int i = 0; i < nfds; i++) { in handle_poll()
/Zephyr-latest/subsys/tracing/ctf/
Dctf_top.c558 void sys_trace_socket_poll_enter(const struct zsock_pollfd *fds, int nfds, int timeout) in sys_trace_socket_poll_enter() argument
560 ctf_top_socket_poll_enter((uint32_t)(uintptr_t)fds, nfds, timeout); in sys_trace_socket_poll_enter()
562 for (int i = 0; i < nfds; i++) { in sys_trace_socket_poll_enter()
567 void sys_trace_socket_poll_exit(const struct zsock_pollfd *fds, int nfds, int ret) in sys_trace_socket_poll_exit() argument
569 ctf_top_socket_poll_exit((uint32_t)(uintptr_t)fds, nfds, ret); in sys_trace_socket_poll_exit()
571 for (int i = 0; i < nfds; i++) { in sys_trace_socket_poll_exit()
/Zephyr-latest/subsys/net/lib/websocket/
Dwebsocket.c457 static inline int websocket_poll_offload(struct zsock_pollfd *fds, int nfds, in websocket_poll_offload() argument
467 for (i = 0; i < nfds; i++) { in websocket_poll_offload()
492 fds, nfds, timeout); in websocket_poll_offload()
496 for (i = 0; i < nfds; i++) { in websocket_poll_offload()
510 int nfds; in websocket_ioctl_vmeth() local
514 nfds = va_arg(args, int); in websocket_ioctl_vmeth()
517 return websocket_poll_offload(fds, nfds, timeout); in websocket_ioctl_vmeth()
/Zephyr-latest/tests/net/lib/lwm2m/lwm2m_engine/src/
Dstubs.c126 int z_impl_zvfs_poll(struct zvfs_pollfd *fds, int nfds, int poll_timeout) in z_impl_zvfs_poll() argument

12