/Zephyr-latest/tests/net/socket/select/src/ |
D | main.c | 75 zsock_fd_set readfds; in ZTEST_USER() local 90 ZSOCK_FD_ZERO(&readfds); in ZTEST_USER() 91 ZSOCK_FD_SET(c_sock, &readfds); in ZTEST_USER() 92 ZSOCK_FD_SET(s_sock, &readfds); in ZTEST_USER() 97 res = zsock_select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER() 106 zassert_false(ZSOCK_FD_ISSET(c_sock, &readfds), ""); in ZTEST_USER() 107 zassert_false(ZSOCK_FD_ISSET(s_sock, &readfds), ""); in ZTEST_USER() 110 ZSOCK_FD_SET(c_sock, &readfds); in ZTEST_USER() 111 ZSOCK_FD_SET(s_sock, &readfds); in ZTEST_USER() 115 res = zsock_select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER() [all …]
|
/Zephyr-latest/lib/os/zvfs/ |
D | zvfs_select.c | 75 int z_impl_zvfs_select(int nfds, struct zvfs_fd_set *ZRESTRICT readfds, in z_impl_zvfs_select() argument 92 if (readfds != NULL) { in z_impl_zvfs_select() 93 read_mask = readfds->bitset[i]; in z_impl_zvfs_select() 152 if (readfds != NULL) { in z_impl_zvfs_select() 153 ZVFS_FD_ZERO(readfds); in z_impl_zvfs_select() 184 if (readfds != NULL) { in z_impl_zvfs_select() 185 ZVFS_FD_SET(fd, readfds); in z_impl_zvfs_select() 219 static int z_vrfy_zvfs_select(int nfds, struct zvfs_fd_set *ZRESTRICT readfds, in z_vrfy_zvfs_select() argument 229 if (readfds) { in z_vrfy_zvfs_select() 231 k_usermode_alloc_from_copy((void *)readfds, sizeof(struct zvfs_fd_set)); in z_vrfy_zvfs_select() [all …]
|
/Zephyr-latest/include/zephyr/posix/sys/ |
D | select.h | 22 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/samples/net/sockets/echo_async_select/src/ |
D | socket_echo_select.c | 48 fd_set readfds; variable 81 FD_SET(fd, &readfds); in pollfds_add() 92 FD_CLR(fd, &readfds); in pollfds_del() 116 FD_ZERO(&readfds); 169 workfds = readfds;
|
/Zephyr-latest/include/zephyr/net/ |
D | socket_select.h | 49 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()
|
/Zephyr-latest/drivers/serial/ |
D | uart_native_ptty_bottom.c | 53 fd_set readfds; in np_uart_stdin_poll_in_bottom() local 56 FD_ZERO(&readfds); in np_uart_stdin_poll_in_bottom() 57 FD_SET(in_f, &readfds); in np_uart_stdin_poll_in_bottom() 59 ready = select(in_f+1, &readfds, NULL, NULL, &timeout); in np_uart_stdin_poll_in_bottom()
|
/Zephyr-latest/lib/posix/options/ |
D | device_io.c | 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/sys/ |
D | fdtable.h | 238 __syscall int zvfs_select(int nfds, struct zvfs_fd_set *ZRESTRICT readfds,
|