/linux-master/security/apparmor/include/ |
H A D | resource.h | 21 /* struct aa_rlimit - rlimit settings for the profile 23 * @limits: rlimit values that override task limits 30 struct rlimit limits[RLIM_NLIMITS]; 38 unsigned int resource, struct rlimit *new_rlim);
|
/linux-master/tools/perf/util/ |
H A D | rlimit.c | 5 #include "util/rlimit.h" 16 struct rlimit rlim; 27 pr_debug("Couldn't bump rlimit(MEMLOCK), failures may take place when creating BPF maps, etc\n"); 35 struct rlimit l;
|
H A D | bpf_counter.h | 88 struct rlimit rinf = { RLIM_INFINITY, RLIM_INFINITY };
|
/linux-master/tools/testing/selftests/powerpc/mm/ |
H A D | stack_expansion_ldst.c | 161 // We should be able to access anywhere within the rlimit 167 // But if we go past the rlimit it should fail 174 struct rlimit rlimit; local 177 getrlimit(RLIMIT_STACK, &rlimit); 178 printf("Stack rlimit is 0x%lx\n", rlimit.rlim_cur); 181 test_one_type(LOAD, page_size, rlimit.rlim_cur); 183 test_one_type(STORE, page_size, rlimit.rlim_cur);
|
/linux-master/include/uapi/linux/ |
H A D | resource.h | 43 struct rlimit { struct
|
/linux-master/tools/testing/selftests/mm/ |
H A D | on-fault-limit.c | 12 struct rlimit lims;
|
H A D | mlock-random-test.c | 29 struct rlimit new; 117 * It expects the mlock/mlock2() to be successful (within rlimit) 124 * The memory region size alloc_size is within the rlimit. 137 struct rlimit cur; 142 ksft_exit_fail_msg("alloc_size[%d] < %u rlimit,lead to mlock failure\n", 191 * The memory region size alloc_size is above the rlimit. 192 * And the len to be locked is higher than rlimit. 204 struct rlimit cur; 208 ksft_exit_fail_msg("alloc_size[%d] >%u rlimit, violates test condition\n",
|
H A D | memfd_secret.c | 213 struct rlimit new; 234 struct rlimit rlim;
|
/linux-master/kernel/ |
H A D | ucount.c | 270 long new = atomic_long_add_return(v, &iter->rlimit[type]); 285 long dec = atomic_long_sub_return(v, &iter->rlimit[type]); 298 long dec = atomic_long_sub_return(1, &iter->rlimit[type]); 319 long new = atomic_long_add_return(1, &iter->rlimit[type]); 327 * the rlimit count was previously 0. 336 dec = atomic_long_sub_return(1, &iter->rlimit[type]); 343 bool is_rlimit_overlimit(struct ucounts *ucounts, enum rlimit_type type, unsigned long rlimit) argument 346 long max = rlimit; 347 if (rlimit > LONG_MAX)
|
H A D | sys.c | 507 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) && 1456 struct rlimit *new_rlim, struct rlimit *old_rlim) 1458 struct rlimit *rlim; 1498 * ignores the rlimit. 1518 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) 1520 struct rlimit value; 1535 struct rlimit r; 1555 struct rlimit r; 1584 struct rlimit __use [all...] |
/linux-master/tools/testing/selftests/core/ |
H A D | close_range_test.c | 221 struct rlimit rlimit; local 244 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); 245 rlimit.rlim_cur = 25; 246 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); 289 struct rlimit rlimit; local 312 ASSERT_EQ(0, getrlimit(RLIMIT_NOFILE, &rlimit)); 313 rlimit.rlim_cur = 25; 314 ASSERT_EQ(0, setrlimit(RLIMIT_NOFILE, &rlimit)); [all...] |
/linux-master/arch/x86/mm/ |
H A D | mmap.c | 83 struct rlimit *rlim_stack) 120 struct rlimit *rlim_stack) 129 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack)
|
/linux-master/security/apparmor/ |
H A D | resource.c | 20 * Table of rlimit names: we generate it from resource.h. 35 audit_log_format(ab, " rlimit=%s value=%lu", 48 * @resource: rlimit being auditing 80 * rlimit resource can vary based on architecture, map the compiled policy 90 struct rlimit *new_rlim) 104 * aa_task_setrlimit - test permission to set an rlimit 117 unsigned int resource, struct rlimit *new_rlim) 157 struct rlimit *rlim, *initrlim;
|
/linux-master/drivers/hwmon/pmbus/ |
H A D | lm25066.c | 232 u16 rlimit; /* Maximum register value */ member in struct:lm25066_data 394 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); 398 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); 404 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); 412 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); 419 word = ((s16)word < 0) ? 0 : clamp_val(word, 0, data->rlimit); 504 data->rlimit = 0x0fff; 508 data->rlimit = 0x0fff;
|
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | user_pages.c | 41 DIV_ROUND_DOWN_ULL(rlimit(RLIMIT_MEMLOCK), PAGE_SIZE);
|
/linux-master/tools/testing/selftests/kvm/ |
H A D | kvm_create_max_vcpus.c | 49 struct rlimit rl;
|
/linux-master/tools/testing/selftests/mqueue/ |
H 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) 147 static inline void setr(int type, struct rlimit *rlim) 158 printf("Current rlimit value for POSIX message queue bytes is " 171 "with the current rlimit values.\n\n"); 183 "with the current rlimit values in case this is " 417 "defaults would\nexceed rlimit:" 422 * Test #2 - open with an attr struct that exceeds rlimit [all...] |
H 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); 270 static inline void getr(int type, struct rlimit *rlim) 276 static inline void setr(int type, struct rlimit *rlim)
|
/linux-master/drivers/infiniband/hw/qib/ |
H A D | qib_user_pages.c | 101 lock_limit = rlimit(RLIMIT_MEMLOCK) >> PAGE_SHIFT;
|
/linux-master/include/linux/ |
H A D | binfmts.h | 28 unsigned long argmin; /* rlimit marker for copy_strings() */ 62 struct rlimit rlim_stack; /* Saved RLIMIT_STACK used during exec. */
|
H A D | user_namespace.h | 121 atomic_long_t rlimit[UCOUNT_RLIMIT_COUNTS]; member in struct:ucounts 137 return atomic_long_read(&ucounts->rlimit[type]);
|
/linux-master/arch/s390/mm/ |
H A D | mmap.c | 29 static inline int mmap_is_legacy(struct rlimit *rlim_stack) 49 struct rlimit *rlim_stack) 175 void arch_pick_mmap_layout(struct mm_struct *mm, struct rlimit *rlim_stack)
|
/linux-master/tools/testing/selftests/x86/ |
H A D | nx_stack.c | 180 struct rlimit rlim;
|
/linux-master/arch/parisc/include/asm/ |
H A D | processor.h | 50 struct rlimit; 51 unsigned long mmap_upper_limit(struct rlimit *rlim_stack);
|
/linux-master/include/linux/sched/ |
H A D | mm.h | 180 struct rlimit *rlim_stack); 199 struct rlimit *rlim_stack) {}
|