Home
last modified time | relevance | path

Searched refs:rlimit (Results 1 – 25 of 128) sorted by relevance

123456

/openbmc/openbmc/poky/meta/recipes-core/systemd/systemd/
H A D0008-Use-uintmax_t-for-handling-rlim_t.patch15 | prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max);
25 src/basic/rlimit-util.c | 12 ++++++------
48 diff --git a/src/basic/rlimit-util.c b/src/basic/rlimit-util.c
50 --- a/src/basic/rlimit-util.c
51 +++ b/src/basic/rlimit-util.c
52 @@ -47,7 +47,7 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) {
56 - log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett…
57 + log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett…
61 @@ -310,13 +310,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) {
94 if (c->rlimit[i]) {
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-core/sdbus-c++/sdbus-c++-libsystemd/
H A D0006-Use-uintmax_t-for-handling-rlim_t.patch15 | prefix, rlimit_to_string(i), c->rlimit[i]->rlim_max);
25 src/basic/rlimit-util.c | 12 ++++++------
48 diff --git a/src/basic/rlimit-util.c b/src/basic/rlimit-util.c
50 --- a/src/basic/rlimit-util.c
51 +++ b/src/basic/rlimit-util.c
52 @@ -44,7 +44,7 @@ int setrlimit_closest(int resource, const struct rlimit *rlim) {
56 - log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett…
57 + log_debug("Failed at setting rlimit " RLIM_FMT " for resource RLIMIT_%s. Will attempt sett…
61 @@ -307,13 +307,13 @@ int rlimit_format(const struct rlimit *rl, char **ret) {
94 if (c->rlimit[i]) {
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dstack_expansion_ldst.c174 struct rlimit rlimit; in test() local
177 getrlimit(RLIMIT_STACK, &rlimit); in test()
178 printf("Stack rlimit is 0x%lx\n", rlimit.rlim_cur); in test()
181 test_one_type(LOAD, page_size, rlimit.rlim_cur); in test()
183 test_one_type(STORE, page_size, rlimit.rlim_cur); in test()
/openbmc/linux/kernel/
H A Ducount.c270 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts()
285 long dec = atomic_long_sub_return(v, &iter->rlimit[type]); in dec_rlimit_ucounts()
298 long dec = atomic_long_sub_return(1, &iter->rlimit[type]); in do_dec_rlimit_put_ucounts()
320 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts()
338 dec = atomic_long_sub_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts()
344 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long rlimit) in is_rlimit_overlimit() argument
347 long max = rlimit; in is_rlimit_overlimit()
348 if (rlimit > LONG_MAX) in is_rlimit_overlimit()
H A Dsys.c507 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) && in flag_nproc_exceeded()
1456 struct rlimit *new_rlim, struct rlimit *old_rlim) in do_prlimit()
1458 struct rlimit *rlim; in do_prlimit()
1518 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) in SYSCALL_DEFINE2()
1520 struct rlimit value; in SYSCALL_DEFINE2()
1535 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
1555 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
1584 struct rlimit __user *, rlim) in SYSCALL_DEFINE2()
1586 struct rlimit x; in SYSCALL_DEFINE2()
1605 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
[all …]
/openbmc/linux/tools/testing/selftests/core/
H A Dclose_range_test.c248 struct rlimit rlimit; in TEST() local
271 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
272 rlimit.rlim_cur = 25; in TEST()
273 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
316 struct rlimit rlimit; in TEST() local
339 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
340 rlimit.rlim_cur = 25; in TEST()
341 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
/openbmc/linux/drivers/hwmon/pmbus/
H A Dlm25066.c232 u16 rlimit; /* Maximum register value */ member
394 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
398 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
404 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
412 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
419 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); in lm25066_write_word_data()
512 data->rlimit = 0x0fff; in lm25066_probe()
516 data->rlimit = 0x0fff; in lm25066_probe()
/openbmc/linux/security/apparmor/include/
H A Dresource.h30 struct rlimit limits[RLIM_NLIMITS];
38 unsigned int resource, struct rlimit *new_rlim);
/openbmc/linux/arch/x86/mm/
H A Dmmap.c83 struct rlimit *rlim_stack) in mmap_base()
120 struct rlimit *rlim_stack) in arch_pick_mmap_base()
129 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
/openbmc/linux/tools/testing/selftests/mqueue/
H A Dmq_open_tests.c53 struct rlimit saved_limits, cur_limits;
65 static inline void getr(int type, struct rlimit *rlim);
66 static inline void setr(int type, struct rlimit *rlim);
141 static inline void getr(int type, struct rlimit *rlim) in getr()
147 static inline void setr(int type, struct rlimit *rlim) in setr()
H A Dmq_perf_tests.c93 struct rlimit saved_limits, cur_limits;
160 static inline void getr(int type, struct rlimit *rlim);
161 static inline void setr(int type, struct rlimit *rlim);
270 static inline void getr(int type, struct rlimit *rlim) in getr()
276 static inline void setr(int type, struct rlimit *rlim) in setr()
/openbmc/linux/tools/testing/selftests/mm/
H A Dmlock-random-test.c28 struct rlimit new; in set_cap_limits()
144 struct rlimit cur; in test_mlock_within_limit()
221 struct rlimit cur; in test_mlock_outof_limit()
H A Don-fault-limit.c12 struct rlimit lims; in test_limit()
H A Dmemfd_secret.c213 struct rlimit new; in set_cap_limits()
234 struct rlimit rlim; in prepare()
/openbmc/linux/security/apparmor/
H A Dresource.c90 struct rlimit *new_rlim) in profile_setrlimit()
117 unsigned int resource, struct rlimit *new_rlim) in aa_task_setrlimit()
157 struct rlimit *rlim, *initrlim; in __aa_transition_rlimits()
/openbmc/linux/arch/s390/mm/
H A Dmmap.c29 static inline int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy()
49 struct rlimit *rlim_stack) in mmap_base()
172 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
/openbmc/qemu/configs/targets/
H A Dor1k-linux-user.mak3 TARGET_SYSTBL_ABI=common,32,or1k,time32,stat64,rlimit,renameat
H A Dhexagon-linux-user.mak4 TARGET_SYSTBL_ABI=common,32,hexagon,time32,stat64,rlimit,renameat
H A Daarch64-linux-user.mak7 TARGET_SYSTBL_ABI=common,64,renameat,rlimit,memfd_secret
H A Daarch64_be-linux-user.mak8 TARGET_SYSTBL_ABI=common,64,renameat,rlimit,memfd_secret
H A Driscv64-linux-user.mak8 TARGET_SYSTBL_ABI=common,64,riscv,rlimit,memfd_secret
/openbmc/linux/tools/perf/util/
H A Drlimit.c15 struct rlimit rlim; in rlimit__bump_memlock()
/openbmc/linux/arch/parisc/include/asm/
H A Dprocessor.h50 struct rlimit;
51 unsigned long mmap_upper_limit(struct rlimit *rlim_stack);
/openbmc/linux/include/linux/
H A Duser_namespace.h113 atomic_long_t rlimit[UCOUNT_RLIMIT_COUNTS]; member
129 return atomic_long_read(&ucounts->rlimit[type]); in get_rlimit_value()
/openbmc/linux/include/uapi/linux/
H A Dresource.h43 struct rlimit { struct

123456