/linux-master/arch/alpha/include/uapi/asm/ |
H A D | resource.h | 9 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
|
/linux-master/arch/mips/include/uapi/asm/ |
H A D | resource.h | 18 #define RLIMIT_NOFILE 5 /* max number of open files */ macro
|
/linux-master/arch/sparc/include/uapi/asm/ |
H A D | resource.h | 15 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
|
/linux-master/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-master/tools/perf/util/ |
H A D | rlimit.c | 40 if (getrlimit(RLIMIT_NOFILE, &l) == 0) { 47 if (setrlimit(RLIMIT_NOFILE, &l) == 0) {
|
H A D | dso.c | 661 if (getrlimit(RLIMIT_NOFILE, &l) == 0) { 700 * of the RLIMIT_NOFILE files opened. 936 * file (dso) due to open file limit (RLIMIT_NOFILE). 1060 * file (dso) due to open file limit (RLIMIT_NOFILE).
|
/linux-master/tools/testing/selftests/kvm/ |
H A D | kvm_create_max_vcpus.c | 58 TEST_ASSERT(!getrlimit(RLIMIT_NOFILE, &rl), "getrlimit() failed!"); 66 int r = setrlimit(RLIMIT_NOFILE, &rl); 68 "RLIMIT_NOFILE hard limit is too low (%d, wanted %d)", 71 TEST_ASSERT(!setrlimit(RLIMIT_NOFILE, &rl), "setrlimit() failed!");
|
/linux-master/include/asm-generic/ |
H A D | resource.h | 20 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
|
/linux-master/tools/testing/selftests/core/ |
H A D | close_range_test.c | 244 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); 246 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); 312 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); 314 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit));
|
/linux-master/tools/perf/tests/ |
H A D | dso-data.c | 242 if (getrlimit(RLIMIT_NOFILE, &rlim)) 248 return setrlimit(RLIMIT_NOFILE, &rlim);
|
/linux-master/tools/testing/selftests/bpf/map_tests/ |
H A D | sk_storage_map.c | 401 getrlimit(RLIMIT_NOFILE, &rlim_old); 413 err = setrlimit(RLIMIT_NOFILE, &rlim_new); 414 CHECK(err, "setrlimit(RLIMIT_NOFILE)", "rlim_new:%lu errno:%d", 428 setrlimit(RLIMIT_NOFILE, &rlim_old);
|
/linux-master/tools/perf/bench/ |
H A D | epoll-wait.c | 476 if (getrlimit(RLIMIT_NOFILE, &prevrl)) 479 printinfo("Setting RLIMIT_NOFILE rlimit from %" PRIu64 " to: %" PRIu64 "\n", 481 if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
|
H A D | epoll-ctl.c | 356 if (getrlimit(RLIMIT_NOFILE, &prevrl)) 359 printinfo("Setting RLIMIT_NOFILE rlimit from %" PRIu64 " to: %" PRIu64 "\n", 361 if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
|
/linux-master/fs/ |
H A D | file.c | 564 return __get_unused_fd_flags(flags, rlimit(RLIMIT_NOFILE)); 1284 if (fd >= rlimit(RLIMIT_NOFILE)) 1366 if (newfd >= rlimit(RLIMIT_NOFILE)) 1429 unsigned long nofile = rlimit(RLIMIT_NOFILE);
|
H A D | select.c | 988 if (nfds > rlimit(RLIMIT_NOFILE))
|
/linux-master/io_uring/ |
H A D | openclose.c | 78 open->nofile = rlimit(RLIMIT_NOFILE);
|
H A D | net.c | 1361 accept->nofile = rlimit(RLIMIT_NOFILE); 1451 sock->nofile = rlimit(RLIMIT_NOFILE);
|
H A D | rsrc.c | 714 if (nr_args > rlimit(RLIMIT_NOFILE))
|
/linux-master/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-master/tools/testing/selftests/powerpc/ptrace/ |
H A D | perf-hwbreak.c | 152 if (getrlimit(RLIMIT_NOFILE, &rlim)) { 157 if (setrlimit(RLIMIT_NOFILE, &rlim)) {
|
/linux-master/kernel/ |
H A D | watch_queue.c | 466 if (atomic_inc_return(&cred->user->nr_watches) > task_rlimit(current, RLIMIT_NOFILE)) {
|
H A D | sys.c | 1468 if (resource == RLIMIT_NOFILE &&
|
/linux-master/tools/testing/selftests/tc-testing/ |
H A D | tdc.py | 1007 resource.setrlimit(resource.RLIMIT_NOFILE, (1048576, 1048576))
|
/linux-master/tools/perf/ |
H A D | builtin-sched.c | 564 BUG_ON(getrlimit(RLIMIT_NOFILE, &limit) == -1); 570 if (setrlimit(RLIMIT_NOFILE, &limit) == -1) {
|
/linux-master/tools/power/x86/turbostat/ |
H A D | turbostat.c | 7976 if (getrlimit(RLIMIT_NOFILE, &limit) < 0) 7984 if (setrlimit(RLIMIT_NOFILE, &limit) < 0)
|