| /OK3568_Linux_fs/external/xserver/os/ |
| H A D | xserver_poll.c | 108 register int max_fd = -1; /* return value */ in map_poll_spec() local 142 max_fd = MAX (max_fd, pCur->fd); in map_poll_spec() 145 return max_fd; in map_poll_spec() 247 int max_fd; /* maximum fd value */ in xserver_poll() local 258 max_fd = map_poll_spec (pArray, n_fds, in xserver_poll() 267 ready_descriptors = select (max_fd + 1, &read_descs, &write_descs, in xserver_poll()
|
| /OK3568_Linux_fs/buildroot/dl/unixbench/git/UnixBench/src/ |
| H A D | time-polling.c | 171 fd_set *exception_fds, int max_fd, int num_iter, in time_select() argument 193 select (max_fd + 1, &i_fds, &o_fds, &e_fds, &tv); in time_select() 203 nready = select (max_fd + 1, &i_fds, &o_fds, &e_fds, &tv); in time_select() 215 for (fd = find_first_set_bit (&e_fds, sizeof e_fds * 8); fd <= max_fd; in time_select() 220 for (fd = find_first_set_bit (&i_fds, sizeof i_fds * 8); fd <= max_fd; in time_select() 225 for (fd = find_first_set_bit (&o_fds, sizeof o_fds * 8); fd <= max_fd; in time_select() 355 int fd, max_fd, count, total_fds; local 390 max_fd = 0; 413 if (fd > max_fd) max_fd = fd; 424 total_fds = max_fd + 1; [all …]
|
| /OK3568_Linux_fs/external/rk_pcba_test/ |
| H A D | echo_ir_test.c | 233 int max_fd = 0; in main() local 259 if (max_fd < fds[i]) in main() 260 max_fd = fds[i]; in main() 273 ret = select(max_fd + 1, &rdfds, NULL, NULL, &sel_timeout_tv); in main()
|
| H A D | echo_key_test.c | 342 int max_fd = 0; in main() local 367 if (max_fd < fds[i]) in main() 368 max_fd = fds[i]; in main() 381 ret = select(max_fd + 1, &rdfds, NULL, NULL, &sel_timeout_tv); in main()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/core/ |
| H A D | close_range_test.c | 26 static inline int sys_close_range(unsigned int fd, unsigned int max_fd, in sys_close_range() argument 29 return syscall(__NR_close_range, fd, max_fd, flags); in sys_close_range()
|
| /OK3568_Linux_fs/kernel/fs/ |
| H A D | file.c | 715 int __close_range(unsigned fd, unsigned max_fd, unsigned int flags) in __close_range() argument 724 if (fd > max_fd) in __close_range() 743 if (max_fd >= cur_max) in __close_range() 758 max_fd = min(max_fd, cur_max); in __close_range() 759 while (fd <= max_fd) { in __close_range()
|
| H A D | open.c | 1367 SYSCALL_DEFINE3(close_range, unsigned int, fd, unsigned int, max_fd, in SYSCALL_DEFINE3() argument 1370 return __close_range(fd, max_fd, flags); in SYSCALL_DEFINE3()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | fdtable.h | 125 extern int __close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
|
| H A D | syscalls.h | 470 asmlinkage long sys_close_range(unsigned int fd, unsigned int max_fd,
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/ |
| H A D | test_sockmap.c | 592 int slct, recvp = 0, recv, max_fd = fd; in msg_loop() local 631 slct = select(max_fd + 1, &w, NULL, NULL, &timeout); in msg_loop() 842 int s, rc, i, max_fd = p2; in forever_ping_pong() local 852 s = select(max_fd + 1, &w, NULL, NULL, &timeout); in forever_ping_pong() 861 for (i = 0; i <= max_fd && s > 0; ++i) { in forever_ping_pong()
|