/linux-6.1.9/tools/testing/selftests/kvm/ |
D | kvm_create_max_vcpus.c | 58 TEST_ASSERT(!getrlimit(RLIMIT_NOFILE, &rl), "getrlimit() failed!"); in main() 66 int r = setrlimit(RLIMIT_NOFILE, &rl); in main() 71 TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!"); in main()
|
/linux-6.1.9/include/uapi/asm-generic/ |
D | resource.h | 30 #ifndef RLIMIT_NOFILE 31 # define RLIMIT_NOFILE 7 /* max number of open files */ macro
|
/linux-6.1.9/arch/sparc/include/uapi/asm/ |
D | resource.h | 15 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
|
/linux-6.1.9/arch/alpha/include/uapi/asm/ |
D | resource.h | 9 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
|
/linux-6.1.9/arch/mips/include/uapi/asm/ |
D | resource.h | 18 #define RLIMIT_NOFILE 5 /* max number of open files */ macro
|
/linux-6.1.9/include/asm-generic/ |
D | resource.h | 20 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
|
/linux-6.1.9/tools/testing/selftests/core/ |
D | close_range_test.c | 271 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() 273 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() 339 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST() 341 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
|
/linux-6.1.9/tools/perf/tests/ |
D | dso-data.c | 242 if (getrlimit(RLIMIT_NOFILE, &rlim)) in set_fd_limit() 248 return setrlimit(RLIMIT_NOFILE, &rlim); in set_fd_limit()
|
/linux-6.1.9/tools/testing/selftests/bpf/map_tests/ |
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-6.1.9/tools/perf/bench/ |
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()
|
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-6.1.9/net/unix/ |
D | scm.c | 101 if (unlikely(user->unix_inflight > task_rlimit(p, RLIMIT_NOFILE))) in too_many_unix_fds()
|
/linux-6.1.9/Documentation/userspace-api/media/mediactl/ |
D | request-func-poll.rst | 72 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/linux-6.1.9/fs/ |
D | file.c | 564 return __get_unused_fd_flags(flags, rlimit(RLIMIT_NOFILE)); in get_unused_fd_flags() 1140 if (fd >= rlimit(RLIMIT_NOFILE)) in replace_fd() 1227 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3() 1286 unsigned long nofile = rlimit(RLIMIT_NOFILE); in f_dupfd()
|
/linux-6.1.9/Documentation/userspace-api/media/cec/ |
D | cec-func-poll.rst | 73 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/linux-6.1.9/io_uring/ |
D | openclose.c | 62 open->nofile = rlimit(RLIMIT_NOFILE); in __io_openat_prep()
|
D | net.c | 1256 accept->nofile = rlimit(RLIMIT_NOFILE); in io_accept_prep() 1345 sock->nofile = rlimit(RLIMIT_NOFILE); in io_socket_prep()
|
D | rsrc.c | 951 if (nr_args > rlimit(RLIMIT_NOFILE)) in io_sqe_files_register()
|
/linux-6.1.9/Documentation/userspace-api/media/v4l/ |
D | func-poll.rst | 112 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
|
/linux-6.1.9/tools/kvm/kvm_stat/ |
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-6.1.9/Documentation/admin-guide/ |
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-6.1.9/kernel/ |
D | watch_queue.c | 469 if (atomic_inc_return(&cred->user->nr_watches) > task_rlimit(current, RLIMIT_NOFILE)) { in add_one_watch()
|
/linux-6.1.9/Documentation/admin-guide/sysctl/ |
D | fs.rst | 135 enough for most machines. Actual limit depends on RLIMIT_NOFILE
|
/linux-6.1.9/tools/perf/util/ |
D | dso.c | 621 if (getrlimit(RLIMIT_NOFILE, &l) == 0) { in get_fd_limit()
|
D | evsel.c | 2022 if (getrlimit(RLIMIT_NOFILE, &l) == 0) { in evsel__increase_rlimit() 2029 if (setrlimit(RLIMIT_NOFILE, &l) == 0) { in evsel__increase_rlimit()
|