/linux-6.1.9/tools/testing/selftests/powerpc/mm/ |
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-6.1.9/kernel/ |
D | ucount.c | 269 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() 318 long new = atomic_long_add_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts() 335 dec = atomic_long_sub_return(1, &iter->rlimit[type]); in inc_rlimit_get_ucounts() 342 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long rlimit) in is_rlimit_overlimit() argument 345 long max = rlimit; in is_rlimit_overlimit() 346 if (rlimit > LONG_MAX) in is_rlimit_overlimit()
|
D | sys.c | 500 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) && in flag_nproc_exceeded() 1438 struct rlimit *new_rlim, struct rlimit *old_rlim) in do_prlimit() 1440 struct rlimit *rlim; in do_prlimit() 1500 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) in SYSCALL_DEFINE2() 1502 struct rlimit value; in SYSCALL_DEFINE2() 1517 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() 1537 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() 1566 struct rlimit __user *, rlim) in SYSCALL_DEFINE2() 1568 struct rlimit x; in SYSCALL_DEFINE2() 1587 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() [all …]
|
/linux-6.1.9/tools/testing/selftests/core/ |
D | close_range_test.c | 248 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()
|
/linux-6.1.9/drivers/hwmon/pmbus/ |
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() 512 data->rlimit = 0x0fff; in lm25066_probe() 516 data->rlimit = 0x0fff; in lm25066_probe()
|
/linux-6.1.9/security/apparmor/include/ |
D | resource.h | 30 struct rlimit limits[RLIM_NLIMITS]; 37 unsigned int resource, struct rlimit *new_rlim);
|
/linux-6.1.9/arch/x86/mm/ |
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-6.1.9/tools/testing/selftests/mqueue/ |
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()
|
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); 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.1.9/security/apparmor/ |
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-6.1.9/tools/testing/selftests/vm/ |
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()
|
D | on-fault-limit.c | 16 struct rlimit lims; in test_limit()
|
D | memfd_secret.c | 210 struct rlimit new; in set_cap_limits() 231 struct rlimit rlim; in prepare()
|
/linux-6.1.9/arch/s390/mm/ |
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-6.1.9/tools/perf/util/ |
D | rlimit.c | 15 struct rlimit rlim; in rlimit__bump_memlock()
|
/linux-6.1.9/include/linux/ |
D | user_namespace.h | 113 atomic_long_t rlimit[UCOUNT_RLIMIT_COUNTS]; member 129 return atomic_long_read(&ucounts->rlimit[type]); in get_rlimit_value()
|
/linux-6.1.9/include/uapi/linux/ |
D | resource.h | 43 struct rlimit { struct
|
/linux-6.1.9/Documentation/translations/zh_CN/process/ |
D | 3.Early-stage.rst | 36 进程特权),并对系统稳定性造成风险。他们首选的解决方案包括短期的通过rlimit
|
/linux-6.1.9/include/linux/sched/ |
D | mm.h | 148 struct rlimit *rlim_stack); 167 struct rlimit *rlim_stack) {} in arch_pick_mmap_layout()
|
/linux-6.1.9/Documentation/translations/zh_TW/process/ |
D | 3.Early-stage.rst | 39 進程特權),並對系統穩定性造成風險。他們首選的解決方案包括短期的通過rlimit
|
/linux-6.1.9/tools/testing/selftests/kvm/ |
D | kvm_create_max_vcpus.c | 49 struct rlimit rl; in main()
|
/linux-6.1.9/mm/ |
D | mlock.c | 42 if (rlimit(RLIMIT_MEMLOCK) != 0) in can_do_mlock() 581 lock_limit = rlimit(RLIMIT_MEMLOCK); in do_mlock() 709 lock_limit = rlimit(RLIMIT_MEMLOCK); in SYSCALL_DEFINE1() 750 lock_limit = rlimit(RLIMIT_MEMLOCK); in user_shm_lock()
|
D | util.c | 371 static int mmap_is_legacy(struct rlimit *rlim_stack) in mmap_is_legacy() 389 static unsigned long mmap_base(unsigned long rnd, struct rlimit *rlim_stack) in mmap_base() 410 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout() 426 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack) in arch_pick_mmap_layout()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | user_pages.c | 32 unsigned long ulimit = rlimit(RLIMIT_MEMLOCK), pinned, cache_limit, in hfi1_can_pin_pages()
|
/linux-6.1.9/drivers/infiniband/hw/qib/ |
D | qib_user_pages.c | 101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT; in qib_get_user_pages()
|