Searched refs:nfds (Results 1 - 12 of 12) sorted by last modified time

/linux-master/tools/lib/perf/
H A Devlist.c329 int nfds = 0; local
334 nfds += nr_cpus;
336 nfds += nr_cpus * nr_threads;
339 if (fdarray__available_entries(&evlist->pollfd) < nfds &&
340 fdarray__grow(&evlist->pollfd, nfds) < 0)
/linux-master/include/linux/
H A Dsyscalls.h1066 asmlinkage long sys_poll(struct pollfd __user *ufds, unsigned int nfds,
H A Drestart_block.h51 int nfds; member in struct:restart_block::__anon604::__anon608
H A Dcompat.h652 unsigned int nfds,
657 unsigned int nfds,
/linux-master/tools/testing/vsock/
H A Dutil.c66 int epollfd, nfds; local
81 nfds = epoll_wait(epollfd, &ev, 1, TIMEOUT * 1000);
82 if (nfds == -1) {
87 if (nfds == 0) {
92 assert(nfds == 1);
/linux-master/fs/
H A Dselect.c15 * of fds to overcome nfds < 16390 descriptors limit (Tigran Aivazian).
974 static int do_sys_poll(struct pollfd __user *ufds, unsigned int nfds, argument
985 unsigned int todo = nfds;
988 if (nfds > rlimit(RLIMIT_NOFILE))
991 len = min_t(unsigned int, nfds, N_STACK_PPS);
998 if (copy_from_user(walk->entries, ufds + nfds-todo,
1019 if (!user_write_access_begin(ufds, nfds * sizeof(*ufds)))
1051 int nfds = restart_block->poll.nfds; local
1061 ret = do_sys_poll(ufds, nfds, t
[all...]
/linux-master/tools/perf/bench/
H A Depoll-wait.c111 static unsigned int nfds = 64; variable
130 OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each thread"),
330 w->fdmap = calloc(nfds, sizeof(int));
334 for (j = 0; j < nfds; j++) {
401 shuffle((void *)w->fdmap, nfds, sizeof(int));
404 for (j = 0; j < nfds; j++) {
478 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50;
486 getpid(), nthreads, oneshot ? " (EPOLLONESHOT semantics)": "", nfds, nsecs);
540 if (nfds
[all...]
H A Depoll-ctl.c60 static unsigned int nfds = 64; variable
77 OPT_UINTEGER('f', "nfds", &nfds, "Specify amount of file descriptors to monitor for each thread"),
165 fd = w->fdmap[rnd1 % nfds];
191 for (i = 0; i < nfds; i++) {
214 for (i = 0; i < nfds; i+=inc) {
244 w->fdmap = calloc(nfds, sizeof(int));
248 for (j = 0; j < nfds; j++) {
358 rl.rlim_cur = rl.rlim_max = nfds * nthreads * 2 + 50;
366 getpid(), nthreads, nfds, nsec
[all...]
/linux-master/tools/include/nolibc/
H A Dsys.h839 * int poll(struct pollfd *fds, int nfds, int timeout);
843 int sys_poll(struct pollfd *fds, int nfds, int timeout) argument
852 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0);
854 return my_syscall3(__NR_poll, fds, nfds, timeout);
856 return __nolibc_enosys(__func__, fds, nfds, timeout);
861 int poll(struct pollfd *fds, int nfds, int timeout) argument
863 return __sysret(sys_poll(fds, nfds, timeout));
957 * int select(int nfds, fd_set *read_fds, fd_set *write_fds,
962 int sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) argument
969 } arg = { .n = nfds,
989 select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) argument
[all...]
/linux-master/tools/thermal/lib/
H A Dmainloop.c24 int i, nfds; local
33 nfds = epoll_wait(epfd, events, MAX_EVENTS, timeout);
35 if (exit_mainloop || !nfds)
38 if (nfds < 0) {
44 for (i = 0; i < nfds; i++) {
/linux-master/tools/testing/selftests/net/
H A Dnettest.c1254 int nfds; local
1275 nfds = interactive ? MAX(fileno(stdin), sd) + 1 : sd + 1;
1282 rc = select(nfds, &rfds, NULL, NULL, ptval);
/linux-master/tools/testing/selftests/x86/
H A Dtest_syscall_vdso.c171 int nfds; variable
184 nfds = 42;
258 " mov nfds, %%ebx\n" /* ebx arg1 */
271 " cmp nfds, %%ebx\n" /* ebx arg1 */

Completed in 209 milliseconds