Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/perf/tests/
H A Dfdarray.c33 int nr_fds, err = TEST_FAIL; in test__fdarray__filter() local
42 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
43 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter()
45 nr_fds, fda->nr_alloc); in test__fdarray__filter()
50 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
51 if (nr_fds != 0) { in test__fdarray__filter()
53 nr_fds, fda->nr_alloc); in test__fdarray__filter()
62 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
64 if (nr_fds != 1) { in test__fdarray__filter()
65 pr_debug("\nfdarray__filter()=%d != 1, should have left just one event", nr_fds); in test__fdarray__filter()
[all...]
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dfdarray.c33 int nr_fds, err = TEST_FAIL; in test__fdarray__filter() local
42 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
43 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter()
45 nr_fds, fda->nr_alloc); in test__fdarray__filter()
50 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
51 if (nr_fds != 0) { in test__fdarray__filter()
53 nr_fds, fda->nr_alloc); in test__fdarray__filter()
62 nr_fds = fdarray__filter(fda, POLLHUP, NULL, NULL); in test__fdarray__filter()
64 if (nr_fds != 1) { in test__fdarray__filter()
65 pr_debug("\nfdarray__filter()=%d != 1, should have left just one event", nr_fds); in test__fdarray__filter()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
H A Dbpf_iter_setsockopt.c22 static unsigned int set_bpf_cubic(int *fds, unsigned int nr_fds) in set_bpf_cubic() argument
26 for (i = 0; i < nr_fds; i++) { in set_bpf_cubic()
32 return nr_fds; in set_bpf_cubic()
35 static unsigned int check_bpf_dctcp(int *fds, unsigned int nr_fds) in check_bpf_dctcp() argument
41 for (i = 0; i < nr_fds; i++) { in check_bpf_dctcp()
48 return nr_fds; in check_bpf_dctcp()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c150 unsigned int nr_fds = 0; in start_reuseport_server() local
168 nr_fds = 1; in start_reuseport_server()
173 for (; nr_fds < nr_listens; nr_fds++) { in start_reuseport_server()
174 fds[nr_fds] = __start_server(type, 0, (struct sockaddr *)&addr, in start_reuseport_server()
176 if (fds[nr_fds] == -1) in start_reuseport_server()
183 free_fds(fds, nr_fds); in start_reuseport_server()
/kernel/linux/linux-5.10/include/net/
H A Daf_unix.h45 atomic_t nr_fds; member
/kernel/linux/linux-6.6/include/net/
H A Daf_unix.h44 atomic_t nr_fds; member
/kernel/linux/linux-6.6/net/unix/
H A Daf_unix.c802 int nr_fds = 0; in unix_count_nr_fds() local
808 nr_fds += atomic_read(&u->scm_stat.nr_fds); in unix_count_nr_fds()
813 return nr_fds; in unix_count_nr_fds()
821 int nr_fds = 0; in unix_show_fdinfo() local
832 nr_fds = atomic_read(&u->scm_stat.nr_fds); in unix_show_fdinfo()
834 nr_fds = unix_count_nr_fds(sk); in unix_show_fdinfo()
836 seq_printf(m, "scm_fds: %u\n", nr_fds); in unix_show_fdinfo()
1879 atomic_add(fp->count, &u->scm_stat.nr_fds); in scm_stat_add()
[all...]
/kernel/linux/linux-5.10/net/unix/
H A Daf_unix.c715 atomic_read(&u->scm_stat.nr_fds)); in unix_show_fdinfo()
1666 atomic_add(fp->count, &u->scm_stat.nr_fds); in scm_stat_add()
1675 atomic_sub(fp->count, &u->scm_stat.nr_fds); in scm_stat_del()

Completed in 9 milliseconds