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

Function lim_cur

lib/ff_glue.c:768–775  ·  view source on GitHub ↗

* Return the current (soft) limit for a particular system resource. * The which parameter which specifies the index into the rlimit array */

Source from the content-addressed store, hash-verified

766 * The which parameter which specifies the index into the rlimit array
767 */
768rlim_t
769lim_cur(struct thread *td, int which)
770{
771 struct rlimit rl;
772
773 lim_rlimit(td, which, &rl);
774 return (rl.rlim_cur);
775}
776
777rlim_t
778lim_cur_proc(struct proc *p, int which)

Callers 15

pts_allocFunction · 0.85
pts_alloc_externalFunction · 0.85
umtx_shm_create_regFunction · 0.85
fork1Function · 0.85
kern_kqueueFunction · 0.85
coredumpFunction · 0.85
vn_rlimit_fsizeFunction · 0.85
getmaxfdFunction · 0.85
exec_new_vmspaceFunction · 0.85
sbreserve_lockedFunction · 0.85
sys_mlockallFunction · 0.85
kern_mmap_racct_checkFunction · 0.85

Calls 1

lim_rlimitFunction · 0.70

Tested by

no test coverage detected