MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lim_rlimit_proc

Function lim_rlimit_proc

freebsd/kern/kern_resource.c:1321–1331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319}
1320
1321void
1322lim_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
1333void
1334uihashinit()

Callers 7

sysctl_kern_proc_rlimitFunction · 0.70
exec_new_vmspaceFunction · 0.70
note_procstat_rlimitFunction · 0.70
lim_cbFunction · 0.70
lim_max_procFunction · 0.70
lim_cur_procFunction · 0.70
vm_daemonFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected