/linux/tools/testing/selftests/kvm/ |
H A D | kvm_create_max_vcpus.c | 56 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 D | resource.h | 30 #ifndef RLIMIT_NOFILE 31 # define RLIMIT_NOFILE 7 /* max number of open files */ macro
|
/linux/tools/perf/util/ |
H A D | rlimit.c | 40 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 D | unshare_test.c | 43 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() 53 EXPECT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)) { in TEST()
|
H A D | close_range_test.c | 266 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 D | resource.h | 15 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
|
/linux/arch/alpha/include/uapi/asm/ |
H A D | resource.h | 9 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
|
/linux/arch/mips/include/uapi/asm/ |
H A D | resource.h | 18 #define RLIMIT_NOFILE 5 /* max number of open files */ macro
|
/linux/include/asm-generic/ |
H A D | resource.h | 20 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
|
/linux/tools/perf/tests/ |
H A D | dso-data.c | 240 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 D | sk_storage_map.c | 401 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 D | epoll-ctl.c | 356 if (getrlimit(RLIMIT_NOFILE, &prevrl)) in bench_epoll_ctl() 361 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_ctl()
|
H A D | epoll-wait.c | 476 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 D | request-func-poll.rst | 72 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/linux/fs/ |
H A D | file.c | 592 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 D | cec-func-poll.rst | 73 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/linux/io_uring/ |
H A D | openclose.c | 78 open->nofile = rlimit(RLIMIT_NOFILE); in __io_openat_prep()
|
H A D | net.c | 1531 accept->nofile = rlimit(RLIMIT_NOFILE); in io_accept_prep() 1641 sock->nofile = rlimit(RLIMIT_NOFILE); in io_socket_prep()
|
H A D | rsrc.c | 493 if (nr_args > rlimit(RLIMIT_NOFILE)) in io_sqe_files_register()
|
/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | perf-hwbreak.c | 152 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 D | func-poll.rst | 112 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/linux/tools/kvm/kvm_stat/ |
H A D | kvm_stat | 700 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 D | perf-security.rst | 269 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 D | watch_queue.c | 466 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 D | tdc.py | 1006 resource.setrlimit(resource.RLIMIT_NOFILE, (1048576, 1048576))
|