Searched refs:rlim_max (Results 1 - 20 of 20) sorted by relevance

/linux-4.4.14/tools/testing/selftests/vm/
H A Don-fault-limit.c28 map = mmap(NULL, 2 * lims.rlim_max, PROT_READ | PROT_WRITE, test_limit()
34 munmap(map, 2 * lims.rlim_max); test_limit()
H A Dcompaction_test.c173 lim.rlim_max = RLIM_INFINITY; main()
/linux-4.4.14/security/apparmor/
H A Dresource.c108 new_rlim->rlim_max > profile->rlimits.limits[resource].rlim_max)) aa_task_setrlimit()
113 return audit_resource(profile, resource, new_rlim->rlim_max, error); aa_task_setrlimit()
135 rlim->rlim_cur = min(rlim->rlim_max, __aa_transition_rlimits()
149 rlim->rlim_max = min(rlim->rlim_max, __aa_transition_rlimits()
150 new->rlimits.limits[i].rlim_max); __aa_transition_rlimits()
152 rlim->rlim_cur = min(rlim->rlim_cur, rlim->rlim_max); __aa_transition_rlimits()
H A Dpolicy_unpack.c455 profile->rlimits.limits[a].rlim_max = tmp2; unpack_rlimits()
/linux-4.4.14/include/uapi/linux/
H A Dresource.h44 __kernel_ulong_t rlim_max; member in struct:rlimit
51 __u64 rlim_max; member in struct:rlimit64
/linux-4.4.14/tools/testing/selftests/mqueue/
H A Dmq_open_tests.c158 cur_limits.rlim_max = 16384; validate_current_settings()
300 (long) saved_limits.rlim_max); main()
316 printf("\tRLIMIT_MSGQUEUE(hard):\t\t%ld\n", (long) cur_limits.rlim_max); 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()
426 cur_max_msgsize = cur_limits.rlim_max >> 4; main()
H A Dmq_perf_tests.c523 cur_limits.rlim_max = RLIM_INFINITY; increase_limits()
659 (long) saved_limits.rlim_max); main()
675 (long) cur_limits.rlim_max); main()
/linux-4.4.14/kernel/
H A Dcompat.c451 __get_user(r.rlim_max, &rlim->rlim_max)) COMPAT_SYSCALL_DEFINE2()
456 if (r.rlim_max == COMPAT_RLIM_INFINITY) COMPAT_SYSCALL_DEFINE2()
457 r.rlim_max = RLIM_INFINITY; COMPAT_SYSCALL_DEFINE2()
477 if (r.rlim_max > COMPAT_RLIM_OLD_INFINITY) COMPAT_SYSCALL_DEFINE2()
478 r.rlim_max = COMPAT_RLIM_INFINITY; COMPAT_SYSCALL_DEFINE2()
482 __put_user(r.rlim_max, &rlim->rlim_max)) COMPAT_SYSCALL_DEFINE2()
500 if (r.rlim_max > COMPAT_RLIM_INFINITY) COMPAT_SYSCALL_DEFINE2()
501 r.rlim_max = COMPAT_RLIM_INFINITY; COMPAT_SYSCALL_DEFINE2()
505 __put_user(r.rlim_max, &rlim->rlim_max)) COMPAT_SYSCALL_DEFINE2()
H A Dsys.c1319 if (x.rlim_max > 0x7FFFFFFF) SYSCALL_DEFINE2()
1320 x.rlim_max = 0x7FFFFFFF; SYSCALL_DEFINE2()
1341 if (rlim->rlim_max == RLIM_INFINITY) rlim_to_rlim64()
1342 rlim64->rlim_max = RLIM64_INFINITY; rlim_to_rlim64()
1344 rlim64->rlim_max = rlim->rlim_max; rlim_to_rlim64()
1353 if (rlim64_is_infinity(rlim64->rlim_max)) rlim64_to_rlim()
1354 rlim->rlim_max = RLIM_INFINITY; rlim64_to_rlim()
1356 rlim->rlim_max = (unsigned long)rlim64->rlim_max; rlim64_to_rlim()
1369 if (new_rlim->rlim_cur > new_rlim->rlim_max) do_prlimit()
1372 new_rlim->rlim_max > sysctl_nr_open) do_prlimit()
1388 if (new_rlim->rlim_max > rlim->rlim_max && do_prlimit()
H A Dfork.c314 init_task.signal->rlim[RLIMIT_NPROC].rlim_max = max_threads/2; fork_init()
/linux-4.4.14/arch/um/os-Linux/
H A Dstart_up.c317 if (lim.rlim_max == RLIM_INFINITY) check_coredump_limit()
319 else printf("%lu\n", lim.rlim_max); check_coredump_limit()
/linux-4.4.14/arch/mips/kernel/
H A Dlinux32.c84 int rlim_max; member in struct:rlimit32
/linux-4.4.14/arch/parisc/include/asm/
H A Dprocessor.h238 stack base is at TASK_SIZE - rlim_max.
/linux-4.4.14/tools/perf/util/
H A Devsel.c1404 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/include/linux/
H A Dcompat.h174 compat_ulong_t rlim_max; member in struct:compat_rlimit
H A Dsched.h758 * to get both rlim_cur and rlim_max atomically, and either one
3182 return READ_ONCE(tsk->signal->rlim[limit].rlim_max); task_rlimit_max()
/linux-4.4.14/kernel/time/
H A Dposix-cpu-timers.c889 READ_ONCE(sig->rlim[RLIMIT_RTTIME].rlim_max); check_thread_timers()
1007 READ_ONCE(sig->rlim[RLIMIT_CPU].rlim_max); check_process_timers()
/linux-4.4.14/tools/perf/
H A Dbuiltin-sched.c465 if (limit.rlim_cur > limit.rlim_max) { self_open_counters()
466 limit.rlim_max = limit.rlim_cur; self_open_counters()
/linux-4.4.14/fs/proc/
H A Dbase.c644 if (rlim[i].rlim_max == RLIM_INFINITY) proc_pid_limits()
647 seq_printf(m, "%-20lu ", rlim[i].rlim_max); proc_pid_limits()
/linux-4.4.14/security/selinux/
H A Dhooks.c2430 rlim->rlim_cur = min(rlim->rlim_max, initrlim->rlim_cur); selinux_bprm_committing_creds()
3700 if (old_rlim->rlim_max != new_rlim->rlim_max) selinux_task_setrlimit()

Completed in 582 milliseconds