Searched refs:nr_fds (Results 1 - 5 of 5) sorted by relevance

/linux-master/tools/perf/tests/
H A Dfdarray.c33 int nr_fds, err = TEST_FAIL; local
42 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL);
43 if (nr_fds != fda->nr_alloc) {
45 nr_fds, fda->nr_alloc);
50 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL);
51 if (nr_fds != 0) {
53 nr_fds, fda->nr_alloc);
62 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL);
64 if (nr_fds != 1) {
65 pr_debug("\nfdarray__filter()=%d != 1, should have left just one event", nr_fds);
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter_setsockopt.c22 static unsigned int set_bpf_cubic(int *fds, unsigned int nr_fds) argument
26 for (i = 0; i < nr_fds; i++) {
32 return nr_fds;
35 static unsigned int check_bpf_dctcp(int *fds, unsigned int nr_fds) argument
41 for (i = 0; i < nr_fds; i++) {
48 return nr_fds;
/linux-master/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c151 unsigned int nr_fds = 0; local
169 nr_fds = 1;
174 for (; nr_fds < nr_listens; nr_fds++) {
175 fds[nr_fds] = __start_server(type, 0, (struct sockaddr *)&addr,
177 if (fds[nr_fds] == -1)
184 free_fds(fds, nr_fds);
/linux-master/include/net/
H A Daf_unix.h52 atomic_t nr_fds; member in struct:scm_stat
/linux-master/net/unix/
H A Daf_unix.c788 int nr_fds = 0; local
794 nr_fds += atomic_read(&u->scm_stat.nr_fds);
799 return nr_fds;
807 int nr_fds = 0; local
818 nr_fds = atomic_read(&u->scm_stat.nr_fds);
820 nr_fds = unix_count_nr_fds(sk);
822 seq_printf(m, "scm_fds: %u\n", nr_fds);
1941 atomic_add(fp->count, &u->scm_stat.nr_fds);
[all...]

Completed in 182 milliseconds