Lines Matching refs:which

84 	int	which;  member
92 return (kern_getpriority(td, uap->which, uap->who)); in sys_getpriority()
96 kern_getpriority(struct thread *td, int which, int who) in kern_getpriority() argument
104 switch (which) { in kern_getpriority()
172 int which; member
181 return (kern_setpriority(td, uap->which, uap->who, uap->prio)); in sys_setpriority()
185 kern_setpriority(struct thread *td, int which, int who, int prio) in kern_setpriority() argument
192 switch (which) { in kern_setpriority()
540 u_int which; member
555 error = kern_setrlimit(td, uap->which, &lim); in osetrlimit()
561 u_int which; member
572 if (uap->which >= RLIM_NLIMITS) in ogetrlimit()
574 lim_rlimit(td, uap->which, &rl); in ogetrlimit()
594 u_int which; member
606 error = kern_setrlimit(td, uap->which, &alim); in sys_setrlimit()
646 kern_setrlimit(struct thread *td, u_int which, struct rlimit *limp) in kern_setrlimit() argument
649 return (kern_proc_setrlimit(td, td->td_proc, which, limp)); in kern_setrlimit()
653 kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which, in kern_proc_setrlimit() argument
661 if (which >= RLIM_NLIMITS) in kern_proc_setrlimit()
676 alimp = &oldlim->pl_rlimit[which]; in kern_proc_setrlimit()
687 alimp = &newlim->pl_rlimit[which]; in kern_proc_setrlimit()
689 switch (which) { in kern_proc_setrlimit()
734 p->p_sysent->sv_fixlimit(limp, which); in kern_proc_setrlimit()
751 if (which == RLIMIT_STACK && in kern_proc_setrlimit()
791 u_int which; member
802 if (uap->which >= RLIM_NLIMITS) in sys_getrlimit()
804 lim_rlimit(td, uap->which, &rlim); in sys_getrlimit()
810 getrlimitusage_one(struct proc *p, u_int which, int flags, rlim_t *res) in getrlimitusage_one() argument
827 switch (which) { in getrlimitusage_one()
916 error = getrlimitusage_one(curproc, uap->which, uap->flags, &res); in sys_getrlimitusage()
1428 lim_max(struct thread *td, int which) in lim_max() argument
1432 lim_rlimit(td, which, &rl); in lim_max()
1437 lim_max_proc(struct proc *p, int which) in lim_max_proc() argument
1441 lim_rlimit_proc(p, which, &rl); in lim_max_proc()
1450 (lim_cur)(struct thread *td, int which) in rlim_t()
1454 lim_rlimit(td, which, &rl); in rlim_t()
1459 lim_cur_proc(struct proc *p, int which) in lim_cur_proc() argument
1463 lim_rlimit_proc(p, which, &rl); in lim_cur_proc()
1472 lim_rlimit(struct thread *td, int which, struct rlimit *rlp) in lim_rlimit() argument
1477 KASSERT(which >= 0 && which < RLIM_NLIMITS, in lim_rlimit()
1479 *rlp = td->td_limit->pl_rlimit[which]; in lim_rlimit()
1481 p->p_sysent->sv_fixlimit(rlp, which); in lim_rlimit()
1485 lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp) in lim_rlimit_proc() argument
1489 KASSERT(which >= 0 && which < RLIM_NLIMITS, in lim_rlimit_proc()
1491 *rlp = p->p_limit->pl_rlimit[which]; in lim_rlimit_proc()
1493 p->p_sysent->sv_fixlimit(rlp, which); in lim_rlimit_proc()