Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/testing/selftests/kvm/
H A Dkvm_create_max_vcpus.c58 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()
/openbmc/linux/include/uapi/asm-generic/
H A Dresource.h30 #ifndef RLIMIT_NOFILE
31 # define RLIMIT_NOFILE 7 /* max number of open files */ macro
/openbmc/linux/arch/sparc/include/uapi/asm/
H A Dresource.h15 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
/openbmc/linux/arch/alpha/include/uapi/asm/
H A Dresource.h9 #define RLIMIT_NOFILE 6 /* max number of open files */ macro
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0006-Use-uintmax_t-for-handling-rlim_t.patch82 if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
83 - return log_debug_errno(errno, "Failed to lower RLIMIT_NOFILE's soft limit to " RLI…
84 + return log_debug_errno(errno, "Failed to lower RLIMIT_NOFILE's soft limit to " RLI…
/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0007-Use-uintmax_t-for-handling-rlim_t.patch82 if (setrlimit(RLIMIT_NOFILE, &rl) < 0)
83 - return log_debug_errno(errno, "Failed to lower RLIMIT_NOFILE's soft limit to " RLI…
84 + return log_debug_errno(errno, "Failed to lower RLIMIT_NOFILE's soft limit to " RLI…
/openbmc/linux/arch/mips/include/uapi/asm/
H A Dresource.h18 #define RLIMIT_NOFILE 5 /* max number of open files */ macro
/openbmc/linux/tools/testing/selftests/core/
H A Dclose_range_test.c271 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()
/openbmc/qemu/
H A Dos-posix.c264 if (getrlimit(RLIMIT_NOFILE, &nofile) < 0) { in os_setup_limits()
279 if (setrlimit(RLIMIT_NOFILE, &nofile) < 0) { in os_setup_limits()
/openbmc/linux/include/asm-generic/
H A Dresource.h20 [RLIMIT_NOFILE] = { INR_OPEN_CUR, INR_OPEN_MAX }, \
/openbmc/linux/tools/perf/tests/
H A Ddso-data.c242 if (getrlimit(RLIMIT_NOFILE, &rlim)) in set_fd_limit()
248 return setrlimit(RLIMIT_NOFILE, &rlim); in set_fd_limit()
/openbmc/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()
/openbmc/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.c481 if (getrlimit(RLIMIT_NOFILE, &prevrl)) in bench_epoll_wait()
486 if (setrlimit(RLIMIT_NOFILE, &rl) < 0) in bench_epoll_wait()
/openbmc/linux/fs/
H A Dfile.c546 return __get_unused_fd_flags(flags, rlimit(RLIMIT_NOFILE)); in get_unused_fd_flags()
1128 if (fd >= rlimit(RLIMIT_NOFILE)) in replace_fd()
1215 if (newfd >= rlimit(RLIMIT_NOFILE)) in ksys_dup3()
1274 unsigned long nofile = rlimit(RLIMIT_NOFILE); in f_dupfd()
/openbmc/linux/Documentation/userspace-api/media/mediactl/
H A Drequest-func-poll.rst72 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
/openbmc/linux/net/unix/
H A Dscm.c102 if (unlikely(READ_ONCE(user->unix_inflight) > task_rlimit(p, RLIMIT_NOFILE))) in too_many_unix_fds()
/openbmc/linux/Documentation/userspace-api/media/cec/
H A Dcec-func-poll.rst73 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
/openbmc/linux/io_uring/
H A Dopenclose.c73 open->nofile = rlimit(RLIMIT_NOFILE); in __io_openat_prep()
H A Dnet.c1363 accept->nofile = rlimit(RLIMIT_NOFILE); in io_accept_prep()
1455 sock->nofile = rlimit(RLIMIT_NOFILE); in io_socket_prep()
/openbmc/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()
/openbmc/linux/Documentation/userspace-api/media/v4l/
H A Dfunc-poll.rst112 The ``nfds`` value exceeds the ``RLIMIT_NOFILE`` value. Use
/openbmc/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))
/openbmc/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
/openbmc/linux/kernel/
H A Dwatch_queue.c466 if (atomic_inc_return(&cred->user->nr_watches) > task_rlimit(current, RLIMIT_NOFILE)) { in add_one_watch()

12