Home
last modified time | relevance | path

Searched refs:RLIMIT_NOFILE (Results 1 – 25 of 33) sorted by relevance

12

/linux/tools/testing/selftests/kvm/
H A Dkvm_create_max_vcpus.c56 TEST_ASSERT(!getrlimit(RLIMIT_NOFILE, &rl), "getrlimit() failed!"); in main()
64 int r = setrlimit(RLIMIT_NOFILE, &rl); in main()
69 TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!"); in main()
/linux/include/uapi/asm-generic/
H A Dresource.h30 #ifndef RLIMIT_NOFILE
31 # define RLIMIT_NOFILE 7 /* max number of open files */ macro
/linux/tools/perf/util/
H A Drlimit.c40 if (getrlimit(RLIMIT_NOFILE, &l) == 0) { in rlimit__increase_nofile()
47 if (setrlimit(RLIMIT_NOFILE, &l) == 0) { in rlimit__increase_nofile()
/linux/tools/testing/selftests/core/
H A Dunshare_test.c43 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
53 EXPECT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)) { in TEST()
H A Dclose_range_test.c266 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
268 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
334 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
336 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
/linux/arch/sparc/include/uapi/asm/
H A Dresource.h15 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
/linux/arch/alpha/include/uapi/asm/
H A Dresource.h9 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
/linux/arch/mips/include/uapi/asm/
H A Dresource.h18 #define RLIMIT_NOFILE 5 /* max number of open files */ macro
/linux/include/asm-generic/
H A Dresource.h20 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
/linux/tools/perf/tests/
H A Ddso-data.c240 if (getrlimit(RLIMIT_NOFILE, &rlim)) in set_fd_limit()
246 return setrlimit(RLIMIT_NOFILE, &rlim); in set_fd_limit()
/linux/tools/testing/selftests/bpf/map_tests/
H A Dsk_storage_map.c401 getrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()
413 err = setrlimit(RLIMIT_NOFILE, &rlim_new); in test_sk_storage_map_stress_free()
428 setrlimit(RLIMIT_NOFILE, &rlim_old); in test_sk_storage_map_stress_free()
/linux/tools/perf/bench/
H A Depoll-ctl.c356 if (getrlimit(RLIMIT_NOFILE, &prevrl)) in bench_epoll_ctl()
361 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_ctl()
H A Depoll-wait.c476 if (getrlimit(RLIMIT_NOFILE, &prevrl)) in bench_epoll_wait()
481 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_wait()
/linux/Documentation/userspace-api/media/mediactl/
H A Drequest-func-poll.rst72 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
/linux/fs/
H A Dfile.c592 return __get_unused_fd_flags(flags, rlimit(RLIMIT_NOFILE)); in get_unused_fd_flags()
1273 if (fd >= rlimit(RLIMIT_NOFILE)) in replace_fd()
1355 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1418 unsigned long nofile = rlimit(RLIMIT_NOFILE); in f_dupfd()
/linux/Documentation/userspace-api/media/cec/
H A Dcec-func-poll.rst73 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
/linux/io_uring/
H A Dopenclose.c78 open->nofile = rlimit(RLIMIT_NOFILE); in __io_openat_prep()
H A Dnet.c1531 accept->nofile = rlimit(RLIMIT_NOFILE); in io_accept_prep()
1641 sock->nofile = rlimit(RLIMIT_NOFILE); in io_socket_prep()
H A Drsrc.c493 if (nr_args > rlimit(RLIMIT_NOFILE)) in io_sqe_files_register()
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dperf-hwbreak.c152 if (getrlimit(RLIMIT_NOFILE, &rlim)) { in perf_systemwide_event_open()
157 if (setrlimit(RLIMIT_NOFILE, &rlim)) { in perf_systemwide_event_open()
/linux/Documentation/userspace-api/media/v4l/
H A Dfunc-poll.rst112 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat700 softlim_, hardlim = resource.getrlimit(resource.RLIMIT_NOFILE)
704 resource.setrlimit(resource.RLIMIT_NOFILE, (newlim, newlim))
707 resource.setrlimit(resource.RLIMIT_NOFILE, (newlim, hardlim))
/linux/Documentation/admin-guide/
H A Dperf-security.rst269 accountable resource governed by the RLIMIT_NOFILE [11]_ limit
273 configuration. RLIMIT_NOFILE limit can be increased on per-user basis
/linux/kernel/
H A Dwatch_queue.c466 if (atomic_inc_return(&cred->user->nr_watches) > task_rlimit(current, RLIMIT_NOFILE)) { in add_one_watch()
/linux/tools/testing/selftests/tc-testing/
H A Dtdc.py1006 resource.setrlimit(resource.RLIMIT_NOFILE, (1048576, 1048576))

12