Home
last modified time | relevance | path

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

1234

/linux/tools/testing/selftests/powerpc/mm/
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()
/linux/arch/powerpc/mm/
A Dmmap.c28 static inline int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy()
66 struct rlimit *rlim_stack) in mmap_base()
187 struct rlimit *rlim_stack) in radix__arch_pick_mmap_layout()
201 struct rlimit *rlim_stack);
207 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
/linux/tools/testing/selftests/core/
A Dclose_range_test.c252 struct rlimit rlimit; in TEST() local
275 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
276 rlimit.rlim_cur = 25; in TEST()
277 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
320 struct rlimit rlimit; in TEST() local
343 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
344 rlimit.rlim_cur = 25; in TEST()
345 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); in TEST()
/linux/drivers/hwmon/pmbus/
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()
506 data->rlimit = 0x0fff; in lm25066_probe()
510 data->rlimit = 0x0fff; in lm25066_probe()
/linux/include/linux/
A Dresource.h12 struct rlimit *new_rlim, struct rlimit *old_rlim);
/linux/security/apparmor/include/
A Dresource.h30 struct rlimit limits[RLIM_NLIMITS];
37 unsigned int resource, struct rlimit *new_rlim);
/linux/arch/x86/mm/
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()
/linux/tools/testing/selftests/mqueue/
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()
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);
267 static inline void getr(int type, struct rlimit *rlim) in getr()
273 static inline void setr(int type, struct rlimit *rlim) in setr()
/linux/arch/s390/mm/
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()
/linux/security/apparmor/
A Dresource.c82 struct rlimit *new_rlim) in profile_setrlimit()
105 unsigned int resource, struct rlimit *new_rlim) in aa_task_setrlimit()
144 struct rlimit *rlim, *initrlim; in __aa_transition_rlimits()
/linux/tools/testing/selftests/vm/
A Dmlock-random-test.c27 struct rlimit new; in set_cap_limits()
143 struct rlimit cur; in test_mlock_within_limit()
220 struct rlimit cur; in test_mlock_outof_limit()
A Dmemfd_secret.c210 struct rlimit new; in set_cap_limits()
231 struct rlimit rlim; in prepare()
A Don-fault-limit.c16 struct rlimit lims; in test_limit()
/linux/kernel/
A Dsys.c1420 struct rlimit value; in SYSCALL_DEFINE2()
1435 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
1455 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
1484 struct rlimit __user *, rlim) in SYSCALL_DEFINE2()
1486 struct rlimit x; in SYSCALL_DEFINE2()
1505 struct rlimit r; in COMPAT_SYSCALL_DEFINE2()
1563 struct rlimit *new_rlim, struct rlimit *old_rlim) in do_prlimit()
1565 struct rlimit *rlim; in do_prlimit()
1646 struct rlimit old, new; in SYSCALL_DEFINE4()
1690 struct rlimit new_rlim; in SYSCALL_DEFINE2()
[all …]
A Ducount.c344 bool is_ucounts_overlimit(struct ucounts *ucounts, enum ucount_type type, unsigned long rlimit) in is_ucounts_overlimit() argument
347 long max = rlimit; in is_ucounts_overlimit()
348 if (rlimit > LONG_MAX) in is_ucounts_overlimit()
/linux/include/linux/sched/
A Dmm.h139 struct rlimit *rlim_stack);
149 struct rlimit *rlim_stack) {} in arch_pick_mmap_layout()
/linux/tools/perf/util/
A Drlimit.c15 struct rlimit rlim; in rlimit__bump_memlock()
/linux/mm/
A Dmlock.c32 if (rlimit(RLIMIT_MEMLOCK) != 0) in can_do_mlock()
662 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock()
788 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1()
829 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()
A Dutil.c370 static int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy()
388 static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) in mmap_base()
409 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
425 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
/linux/tools/testing/selftests/bpf/
A Dbpf_rlimit.h6 struct rlimit rlim_old, rlim_new = { in bpf_rlimit_ctor()
/linux/include/uapi/linux/
A Dresource.h43 struct rlimit { struct
/linux/Documentation/translations/zh_CN/process/
A D3.Early-stage.rst36 进程特权),并对系统稳定性造成风险。他们首选的解决方案包括短期的通过rlimit
/linux/Documentation/translations/zh_TW/process/
A D3.Early-stage.rst39 進程特權),並對系統穩定性造成風險。他們首選的解決方案包括短期的通過rlimit
/linux/tools/testing/selftests/kvm/
A Dkvm_create_max_vcpus.c49 struct rlimit rl; in main()

Completed in 50 milliseconds

1234