Home
last modified time | relevance | path

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

12345

/linux-6.12.1/tools/testing/selftests/core/
Dunshare_test.c31 struct rlimit rlimit; in TEST() local
43 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
51 rlimit.rlim_cur = nr_open + 1024; in TEST()
52 rlimit.rlim_max = nr_open + 1024; in TEST()
53 EXPECT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)) { in TEST()
Dclose_range_test.c243 struct rlimit rlimit; in TEST() local
266 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
267 rlimit.rlim_cur = 25; in TEST()
268 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
311 struct rlimit rlimit; in TEST() local
334 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
335 rlimit.rlim_cur = 25; in TEST()
336 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
/linux-6.12.1/tools/testing/selftests/powerpc/mm/
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()
/linux-6.12.1/kernel/
Ducount.c269 long new = atomic_long_add_return(v, &iter->rlimit[type]); in inc_rlimit_ucounts()
284 long dec = atomic_long_sub_return(v, &iter->rlimit[type]); in dec_rlimit_ucounts()
297 long dec = atomic_long_sub_return(1, &iter->rlimit[type]); in do_dec_rlimit_put_ucounts()
319 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts()
337 dec = atomic_long_sub_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts()
343 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long rlimit) in is_rlimit_overlimit() argument
346 long max = rlimit; in is_rlimit_overlimit()
347 if (rlimit > LONG_MAX) in is_rlimit_overlimit()
Dsys.c516 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) && in flag_nproc_exceeded()
1465 struct rlimit *new_rlim, struct rlimit *old_rlim) in do_prlimit()
1467 struct rlimit *rlim; in do_prlimit()
1527 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) in SYSCALL_DEFINE2()
1529 struct rlimit value; in SYSCALL_DEFINE2()
1544 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
1564 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
1593 struct rlimit __user *, rlim) in SYSCALL_DEFINE2()
1595 struct rlimit x; in SYSCALL_DEFINE2()
1614 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
[all …]
/linux-6.12.1/drivers/hwmon/pmbus/
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()
504 data->rlimit = 0x0fff; in lm25066_probe()
508 data->rlimit = 0x0fff; in lm25066_probe()
/linux-6.12.1/security/apparmor/include/
Dresource.h30 struct rlimit limits[RLIM_NLIMITS];
38 unsigned int resource, struct rlimit *new_rlim);
/linux-6.12.1/arch/x86/mm/
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()
/linux-6.12.1/tools/perf/util/
Drlimit.c16 struct rlimit rlim; in rlimit__bump_memlock()
35 struct rlimit l; in rlimit__increase_nofile()
/linux-6.12.1/tools/testing/selftests/mqueue/
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()
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()
/linux-6.12.1/security/apparmor/
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()
/linux-6.12.1/tools/testing/selftests/mm/
Dmlock-random-test.c29 struct rlimit new; in set_cap_limits()
137 struct rlimit cur; in test_mlock_within_limit()
204 struct rlimit cur; in test_mlock_outof_limit()
Don-fault-limit.c12 struct rlimit lims; in test_limit()
/linux-6.12.1/arch/s390/mm/
Dmmap.c29 static inline int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy()
49 struct rlimit *rlim_stack) in mmap_base()
174 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
/linux-6.12.1/arch/csky/kernel/
DMakefile.syscalls3 syscall_abis_32 += csky time32 stat64 rlimit
/linux-6.12.1/arch/arc/kernel/
DMakefile.syscalls3 syscall_abis_32 += arc time32 renameat stat64 rlimit
/linux-6.12.1/arch/openrisc/kernel/
DMakefile.syscalls3 syscall_abis_32 += or1k time32 stat64 rlimit renameat
/linux-6.12.1/arch/hexagon/kernel/
DMakefile.syscalls3 syscall_abis_32 += hexagon time32 stat64 rlimit renameat
/linux-6.12.1/arch/nios2/kernel/
DMakefile.syscalls3 syscall_abis_32 += nios2 time32 stat64 renameat rlimit
/linux-6.12.1/arch/riscv/kernel/
DMakefile.syscalls4 syscall_abis_64 += riscv rlimit memfd_secret
/linux-6.12.1/arch/arm64/kernel/
DMakefile.syscalls4 syscall_abis_64 += renameat rlimit memfd_secret
/linux-6.12.1/arch/parisc/include/asm/
Dprocessor.h50 struct rlimit;
51 unsigned long mmap_upper_limit(struct rlimit *rlim_stack);
/linux-6.12.1/include/linux/
Duser_namespace.h123 atomic_long_t rlimit[UCOUNT_RLIMIT_COUNTS]; member
139 return atomic_long_read(&ucounts->rlimit[type]); in get_rlimit_value()
/linux-6.12.1/include/uapi/linux/
Dresource.h43 struct rlimit { struct

12345