/linux/tools/testing/selftests/powerpc/mm/ |
A D | stack_expansion_ldst.c | 174 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 D | mmap.c | 28 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 D | close_range_test.c | 252 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 D | lm25066.c | 232 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 D | resource.h | 12 struct rlimit *new_rlim, struct rlimit *old_rlim);
|
/linux/security/apparmor/include/ |
A D | resource.h | 30 struct rlimit limits[RLIM_NLIMITS]; 37 unsigned int resource, struct rlimit *new_rlim);
|
/linux/arch/x86/mm/ |
A D | mmap.c | 83 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 D | mq_open_tests.c | 53 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 D | mq_perf_tests.c | 93 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 D | mmap.c | 29 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 D | resource.c | 82 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 D | mlock-random-test.c | 27 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 D | memfd_secret.c | 210 struct rlimit new; in set_cap_limits() 231 struct rlimit rlim; in prepare()
|
A D | on-fault-limit.c | 16 struct rlimit lims; in test_limit()
|
/linux/kernel/ |
A D | sys.c | 1420 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 D | ucount.c | 344 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 D | mm.h | 139 struct rlimit *rlim_stack); 149 struct rlimit *rlim_stack) {} in arch_pick_mmap_layout()
|
/linux/tools/perf/util/ |
A D | rlimit.c | 15 struct rlimit rlim; in rlimit__bump_memlock()
|
/linux/mm/ |
A D | mlock.c | 32 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 D | util.c | 370 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 D | bpf_rlimit.h | 6 struct rlimit rlim_old, rlim_new = { in bpf_rlimit_ctor()
|
/linux/include/uapi/linux/ |
A D | resource.h | 43 struct rlimit { struct
|
/linux/Documentation/translations/zh_CN/process/ |
A D | 3.Early-stage.rst | 36 进程特权),并对系统稳定性造成风险。他们首选的解决方案包括短期的通过rlimit
|
/linux/Documentation/translations/zh_TW/process/ |
A D | 3.Early-stage.rst | 39 進程特權),並對系統穩定性造成風險。他們首選的解決方案包括短期的通過rlimit
|
/linux/tools/testing/selftests/kvm/ |
A D | kvm_create_max_vcpus.c | 49 struct rlimit rl; in main()
|