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

Function lim_max

freebsd/kern/kern_resource.c:1264–1271  ·  view source on GitHub ↗

* Return the hard limit for a particular system resource. The * which parameter specifies the index into the rlimit array. */

Source from the content-addressed store, hash-verified

1262 * which parameter specifies the index into the rlimit array.
1263 */
1264rlim_t
1265lim_max(struct thread *td, int which)
1266{
1267 struct rlimit rl;
1268
1269 lim_rlimit(td, which, &rl);
1270 return (rl.rlim_max);
1271}
1272
1273rlim_t
1274lim_max_proc(struct proc *p, int which)

Callers 6

kern_shmat_lockedFunction · 0.85
shm_mmap_largeFunction · 0.85
copyout_mapFunction · 0.85
vm_mmap.cFile · 0.85
vm_mmap_objectFunction · 0.85

Calls 1

lim_rlimitFunction · 0.70

Tested by

no test coverage detected