Home
last modified time | relevance | path

Searched refs:readfds (Results 1 – 11 of 11) 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/linux/common_modules/newip/examples/
Dnip_udp_client_demo.c50 fd_set readfds; in _recvfrom() local
55 FD_ZERO(&readfds); in _recvfrom()
56 FD_SET(cfd, &readfds); in _recvfrom()
59 if (select(cfd + 1, &readfds, NULL, NULL, &tv) < 0) { in _recvfrom()
64 if (FD_ISSET(cfd, &readfds)) { in _recvfrom()
Dnip_tcp_client_demo.c50 fd_set readfds; in _recv() local
54 FD_ZERO(&readfds); in _recv()
55 FD_SET(cfd, &readfds); in _recv()
58 if (select(cfd + 1, &readfds, NULL, NULL, &tv) < 0) { in _recv()
63 if (FD_ISSET(cfd, &readfds)) { in _recv()
/kernel/liteos_a/testsuites/unittest/net/socket/smoke/
Dnet_socket_test_011.cpp224 fd_set readfds; in UdpSelectTest() local
231 FD_ZERO(&readfds); in UdpSelectTest()
233 GetReadfds(&readfds, &nfd); in UdpSelectTest()
235 ret = select(nfd + 1, &readfds, NULL, NULL, &timeout); in UdpSelectTest()
244 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.c1108 static int SelectParamCheckCopy(fd_set *readfds, fd_set *writefds, fd_set *exceptfds, fd_set **fdsB… in SelectParamCheckCopy() argument
1123 if (readfds != NULL) { in SelectParamCheckCopy()
1124 if (LOS_ArchCopyFromUser(readfdsRet, readfds, sizeof(fd_set)) != 0) { in SelectParamCheckCopy()
1147 int SysSelect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeo… in SysSelect() argument
1156 ret = SelectParamCheckCopy(readfds, writefds, exceptfds, &fdsRet); in SysSelect()
1171 ret = do_select(nfds, (readfds ? readfdsRet : NULL), (writefds ? writefdsRet : NULL), in SysSelect()
1178 if (readfds != NULL) { in SysSelect()
1179 if (LOS_ArchCopyToUser(readfds, readfdsRet, sizeof(fd_set)) != 0) { in SysSelect()
2691 int SysPselect6(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, in SysPselect6() argument
2699 CHECK_ASPACE(readfds, sizeof(fd_set)); in SysPselect6()
[all …]
Dlos_syscall.h221 extern int do_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
265 extern int SysSelect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval…
266 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()