| 1319 | } |
| 1320 | |
| 1321 | void |
| 1322 | lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp) |
| 1323 | { |
| 1324 | |
| 1325 | PROC_LOCK_ASSERT(p, MA_OWNED); |
| 1326 | KASSERT(which >= 0 && which < RLIM_NLIMITS, |
| 1327 | ("request for invalid resource limit")); |
| 1328 | *rlp = p->p_limit->pl_rlimit[which]; |
| 1329 | if (p->p_sysent->sv_fixlimit != NULL) |
| 1330 | p->p_sysent->sv_fixlimit(rlp, which); |
| 1331 | } |
| 1332 | |
| 1333 | void |
| 1334 | uihashinit() |
no outgoing calls
no test coverage detected