/linux-4.4.14/include/uapi/linux/ |
H A D | resource.h | 43 __kernel_ulong_t rlim_cur; member in struct:rlimit 50 __u64 rlim_cur; member in struct:rlimit64
|
/linux-4.4.14/security/apparmor/ |
H A D | resource.c | 135 rlim->rlim_cur = min(rlim->rlim_max, __aa_transition_rlimits() 136 initrlim->rlim_cur); __aa_transition_rlimits() 152 rlim->rlim_cur = min(rlim->rlim_cur, rlim->rlim_max); __aa_transition_rlimits()
|
/linux-4.4.14/tools/testing/selftests/mqueue/ |
H A D | mq_open_tests.c | 154 if (cur_limits.rlim_cur < 4096) { validate_current_settings() 157 cur_limits.rlim_cur = 8192; validate_current_settings() 165 if (rlim_needed > cur_limits.rlim_cur) { validate_current_settings() 177 if (rlim_needed > cur_limits.rlim_cur) { validate_current_settings() 298 (long) saved_limits.rlim_cur); main() 315 printf("\tRLIMIT_MSGQUEUE(soft):\t\t%ld\n", (long) cur_limits.rlim_cur); main() 387 cur_limits.rlim_cur) { main() 388 cur_limits.rlim_cur = (cur_def_msgs + 2) * main() 390 cur_limits.rlim_max = 2 * cur_limits.rlim_cur; main() 407 cur_limits.rlim_cur = cur_limits.rlim_max = cur_def_msgs * main()
|
H A D | mq_perf_tests.c | 522 cur_limits.rlim_cur = RLIM_INFINITY; increase_limits() 657 (long) saved_limits.rlim_cur); main() 668 if (cur_limits.rlim_cur == RLIM_INFINITY) { main() 673 (long) cur_limits.rlim_cur); main()
|
/linux-4.4.14/arch/um/os-Linux/ |
H A D | main.c | 34 if ((lim.rlim_cur == RLIM_INFINITY) || (lim.rlim_cur > STACKSIZE)) { set_stklim() 35 lim.rlim_cur = STACKSIZE; set_stklim()
|
H A D | start_up.c | 312 if (lim.rlim_cur == RLIM_INFINITY) check_coredump_limit() 314 else printf("%lu\n", lim.rlim_cur); check_coredump_limit()
|
/linux-4.4.14/kernel/ |
H A D | compat.c | 450 __get_user(r.rlim_cur, &rlim->rlim_cur) || COMPAT_SYSCALL_DEFINE2() 454 if (r.rlim_cur == COMPAT_RLIM_INFINITY) COMPAT_SYSCALL_DEFINE2() 455 r.rlim_cur = RLIM_INFINITY; COMPAT_SYSCALL_DEFINE2() 475 if (r.rlim_cur > COMPAT_RLIM_OLD_INFINITY) COMPAT_SYSCALL_DEFINE2() 476 r.rlim_cur = COMPAT_RLIM_INFINITY; COMPAT_SYSCALL_DEFINE2() 481 __put_user(r.rlim_cur, &rlim->rlim_cur) || COMPAT_SYSCALL_DEFINE2() 498 if (r.rlim_cur > COMPAT_RLIM_INFINITY) COMPAT_SYSCALL_DEFINE2() 499 r.rlim_cur = COMPAT_RLIM_INFINITY; COMPAT_SYSCALL_DEFINE2() 504 __put_user(r.rlim_cur, &rlim->rlim_cur) || COMPAT_SYSCALL_DEFINE2()
|
H A D | sys.c | 1317 if (x.rlim_cur > 0x7FFFFFFF) SYSCALL_DEFINE2() 1318 x.rlim_cur = 0x7FFFFFFF; SYSCALL_DEFINE2() 1337 if (rlim->rlim_cur == RLIM_INFINITY) rlim_to_rlim64() 1338 rlim64->rlim_cur = RLIM64_INFINITY; rlim_to_rlim64() 1340 rlim64->rlim_cur = rlim->rlim_cur; rlim_to_rlim64() 1349 if (rlim64_is_infinity(rlim64->rlim_cur)) rlim64_to_rlim() 1350 rlim->rlim_cur = RLIM_INFINITY; rlim64_to_rlim() 1352 rlim->rlim_cur = (unsigned long)rlim64->rlim_cur; rlim64_to_rlim() 1369 if (new_rlim->rlim_cur > new_rlim->rlim_max) do_prlimit() 1394 if (resource == RLIMIT_CPU && new_rlim->rlim_cur == 0) { do_prlimit() 1401 new_rlim->rlim_cur = 1; do_prlimit() 1419 new_rlim->rlim_cur != RLIM_INFINITY) do_prlimit() 1420 update_rlimit_cpu(tsk, new_rlim->rlim_cur); do_prlimit()
|
H A D | acct.c | 478 flim = current->signal->rlim[RLIMIT_FSIZE].rlim_cur; do_acct_process() 479 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; do_acct_process() 521 current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim; do_acct_process()
|
H A D | fork.c | 313 init_task.signal->rlim[RLIMIT_NPROC].rlim_cur = max_threads/2; fork_init() 1104 cpu_limit = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur); posix_cpu_timers_init_group()
|
/linux-4.4.14/tools/perf/tests/ |
H A D | dso-data.c | 242 pr_debug("file limit %ld, new %d\n", (long) rlim.rlim_cur, n); set_fd_limit() 244 rlim.rlim_cur = n; set_fd_limit()
|
/linux-4.4.14/arch/mips/kernel/ |
H A D | linux32.c | 83 int rlim_cur; member in struct:rlimit32
|
/linux-4.4.14/tools/testing/selftests/vm/ |
H A D | compaction_test.c | 172 lim.rlim_cur = RLIM_INFINITY; main()
|
/linux-4.4.14/kernel/time/ |
H A D | posix-cpu-timers.c | 886 soft = READ_ONCE(sig->rlim[RLIMIT_RTTIME].rlim_cur); check_thread_timers() 906 sig->rlim[RLIMIT_RTTIME].rlim_cur = soft; check_thread_timers() 1003 soft = READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_cur); check_process_timers() 1024 sig->rlim[RLIMIT_CPU].rlim_cur = soft; check_process_timers()
|
/linux-4.4.14/tools/perf/util/ |
H A D | dso.c | 429 if (l.rlim_cur == RLIM_INFINITY) get_fd_limit() 430 limit = l.rlim_cur; get_fd_limit() 432 limit = l.rlim_cur / 2; get_fd_limit()
|
H A D | evsel.c | 1404 l.rlim_cur = l.rlim_max; __perf_evsel__open() 1406 l.rlim_cur = l.rlim_max + 1000; __perf_evsel__open() 1407 l.rlim_max = l.rlim_cur; __perf_evsel__open()
|
/linux-4.4.14/tools/perf/ |
H A D | builtin-sched.c | 464 limit.rlim_cur += sched->nr_tasks - cur_task; self_open_counters() 465 if (limit.rlim_cur > limit.rlim_max) { self_open_counters() 466 limit.rlim_max = limit.rlim_cur; self_open_counters()
|
/linux-4.4.14/drivers/android/ |
H A D | binder.c | 380 unsigned long rlim_cur; task_get_unused_fd_flags() local 389 rlim_cur = task_rlimit(proc->tsk, RLIMIT_NOFILE); task_get_unused_fd_flags() 392 return __alloc_fd(files, 0, rlim_cur, flags); task_get_unused_fd_flags() 447 min_nice = rlimit_to_nice(current->signal->rlim[RLIMIT_NICE].rlim_cur); binder_set_nice()
|
/linux-4.4.14/fs/proc/ |
H A D | array.c | 433 rsslim = ACCESS_ONCE(sig->rlim[RLIMIT_RSS].rlim_cur); do_task_stat()
|
H A D | base.c | 637 if (rlim[i].rlim_cur == RLIM_INFINITY) proc_pid_limits() 642 lnames[i].name, rlim[i].rlim_cur); proc_pid_limits()
|
/linux-4.4.14/include/linux/ |
H A D | compat.h | 173 compat_ulong_t rlim_cur; member in struct:compat_rlimit
|
H A D | sched.h | 758 * to get both rlim_cur and rlim_max atomically, and either one 3176 return READ_ONCE(tsk->signal->rlim[limit].rlim_cur); task_rlimit()
|
/linux-4.4.14/fs/ |
H A D | exec.c | 227 if (size > ACCESS_ONCE(rlim[RLIMIT_STACK].rlim_cur) / 4) { get_arg_page()
|
/linux-4.4.14/mm/ |
H A D | mmap.c | 2116 if (actual_size > READ_ONCE(rlim[RLIMIT_STACK].rlim_cur)) acct_stack_growth() 2124 limit = READ_ONCE(rlim[RLIMIT_MEMLOCK].rlim_cur); acct_stack_growth()
|
/linux-4.4.14/security/selinux/ |
H A D | hooks.c | 2430 rlim->rlim_cur = min(rlim->rlim_max, initrlim->rlim_cur); selinux_bprm_committing_creds()
|
/linux-4.4.14/arch/ia64/kernel/ |
H A D | perfmon.c | 2259 * if ((mm->total_vm << PAGE_SHIFT) + len> task->rlim[RLIMIT_AS].rlim_cur) pfm_smpl_buffer_alloc()
|