Home
last modified time | relevance | path

Searched refs:readfds (Results 1 – 9 of 9) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/rtc/
Drtctest.c91 fd_set readfds; in TEST_F() local
93 FD_ZERO(&readfds); in TEST_F()
94 FD_SET(self->fd, &readfds); in TEST_F()
96 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
116 fd_set readfds; in TEST_F() local
143 FD_ZERO(&readfds); in TEST_F()
144 FD_SET(self->fd, &readfds); in TEST_F()
146 rc = select(self->fd + 1, &readfds, NULL, NULL, &tv); in TEST_F()
170 fd_set readfds; in TEST_F() local
197 FD_ZERO(&readfds); in TEST_F()
[all …]
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_011.cpp221 fd_set readfds; in UdpSelectTest() local
228 FD_ZERO(&readfds); in UdpSelectTest()
230 GetReadfds(&readfds, &nfd); in UdpSelectTest()
232 ret = select(nfd + 1, &readfds, NULL, NULL, &timeout); in UdpSelectTest()
241 if (HandleReadfds(&readfds, lsfd) < 0) { in UdpSelectTest()
Dnet_socket_test_008.cpp244 fd_set readfds; in SelectTest() local
251 FD_ZERO(&readfds); in SelectTest()
253 GetReadfds(&readfds, &nfd); in SelectTest()
255 ret = select(nfd + 1, &readfds, NULL, NULL, &timeout); in SelectTest()
264 if (HandleReadfds(&readfds, lsfd) < 0) { in SelectTest()
Dnet_socket_test_013.cpp298 fd_set readfds; in UdpBrdcastSelectTest() local
305 FD_ZERO(&readfds); in UdpBrdcastSelectTest()
307 GetReadfds(&readfds, &nfd); in UdpBrdcastSelectTest()
309 ret = select(nfd + 1, &readfds, NULL, NULL, &timeout); in UdpBrdcastSelectTest()
318 if (HandleReadfds(&readfds, lsfd) < 0) { in UdpBrdcastSelectTest()
Dnet_socket_test_009.cpp244 struct pollfd readfds[FD_SETSIZE]; in PollTest() local
249 GetReadfds(readfds, &nfd); in PollTest()
251 ret = poll(readfds, nfd, timeoutMs); in PollTest()
260 if (HandleReadfds(readfds, nfd, lsfd) < 0) { in PollTest()
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
Dfunc-select.rst24 .. c:function:: int select( int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct …
32 ``readfds``
62 function succeeds, setting the bit of the file descriptor in ``readfds``
103 The ``readfds``, ``writefds``, ``exceptfds`` or ``timeout`` pointer
/kernel/liteos_a/syscall/
Dfs_syscall.c981 static int SelectParamCheckCopy(fd_set *readfds, fd_set *writefds, fd_set *exceptfds, fd_set **fdsB… in SelectParamCheckCopy() argument
996 if (readfds != NULL) { in SelectParamCheckCopy()
997 if (LOS_ArchCopyFromUser(readfdsRet, readfds, sizeof(fd_set)) != 0) { in SelectParamCheckCopy()
1020 int SysSelect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeo… in SysSelect() argument
1029 ret = SelectParamCheckCopy(readfds, writefds, exceptfds, &fdsRet); in SysSelect()
1044 ret = do_select(nfds, (readfds ? readfdsRet : NULL), (writefds ? writefdsRet : NULL), in SysSelect()
1051 if (readfds != NULL) { in SysSelect()
1052 if (LOS_ArchCopyToUser(readfds, readfdsRet, sizeof(fd_set)) != 0) { in SysSelect()
2555 int SysPselect6(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in SysPselect6() argument
2563 CHECK_ASPACE(readfds, sizeof(fd_set)); in SysPselect6()
[all …]
Dlos_syscall.h215 extern int do_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
259 extern int SysSelect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval…
260 extern int SysPselect6(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
/kernel/linux/linux-5.10/tools/power/x86/turbostat/
Dturbostat.c3187 fd_set readfds; in do_sleep() local
3190 FD_ZERO(&readfds); in do_sleep()
3191 FD_SET(0, &readfds); in do_sleep()
3199 retval = select(1, &readfds, NULL, NULL, &tout); in do_sleep()