Searched refs:rlimit (Results 1 – 6 of 6) sorted by relevance
/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 | 502 if (is_rlimit_overlimit(new->ucounts, UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC)) && in flag_nproc_exceeded() 1451 struct rlimit *new_rlim, struct rlimit *old_rlim) in do_prlimit() 1453 struct rlimit *rlim; in do_prlimit() 1513 SYSCALL_DEFINE2(getrlimit, unsigned int, resource, struct rlimit __user *, rlim) in SYSCALL_DEFINE2() 1515 struct rlimit value; in SYSCALL_DEFINE2() 1530 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() 1550 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() 1579 struct rlimit __user *, rlim) in SYSCALL_DEFINE2() 1581 struct rlimit x; in SYSCALL_DEFINE2() 1600 struct rlimit r; in COMPAT_SYSCALL_DEFINE2() [all …]
|
D | user_namespace.c | 69 limit = rlimit(RLIMIT_NPROC); in enforced_nproc_rlimit() 143 set_userns_rlimit_max(ns, UCOUNT_RLIMIT_MSGQUEUE, rlimit(RLIMIT_MSGQUEUE)); in create_user_ns() 144 set_userns_rlimit_max(ns, UCOUNT_RLIMIT_SIGPENDING, rlimit(RLIMIT_SIGPENDING)); in create_user_ns() 145 set_userns_rlimit_max(ns, UCOUNT_RLIMIT_MEMLOCK, rlimit(RLIMIT_MEMLOCK)); in create_user_ns()
|
D | acct.c | 502 flim = rlimit(RLIMIT_FSIZE); in do_acct_process()
|
D | fork.c | 2235 if (is_rlimit_overlimit(task_ucounts(p), UCOUNT_RLIMIT_NPROC, rlimit(RLIMIT_NPROC))) { in copy_process()
|
/kernel/events/ |
D | core.c | 6405 lock_limit = rlimit(RLIMIT_MEMLOCK); in perf_mmap()
|