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

Function lim_rlimit

lib/ff_glue.c:790–801  ·  view source on GitHub ↗

* Return a copy of the entire rlimit structure for the system limit * specified by 'which' in the rlimit structure pointed to by 'rlp'. */

Source from the content-addressed store, hash-verified

788 * specified by 'which' in the rlimit structure pointed to by 'rlp'.
789 */
790void
791lim_rlimit(struct thread *td, int which, struct rlimit *rlp)
792{
793 struct proc *p = td->td_proc;
794
795 MPASS(td == curthread);
796 KASSERT(which >= 0 && which < RLIM_NLIMITS,
797 ("request for invalid resource limit"));
798 *rlp = p->p_limit->pl_rlimit[which];
799 if (p->p_sysent->sv_fixlimit != NULL)
800 p->p_sysent->sv_fixlimit(rlp, which);
801}
802
803void
804lim_rlimit_proc(struct proc *p, int which, struct rlimit *rlp)

Callers 1

lim_curFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected