Searched refs:maxproc (Results 1 – 15 of 15) sorted by relevance
| /xnu-11215/bsd/dev/ |
| H A D | unix_startup.c | 342 maxproc *= scale; in bsd_scale_setup() 343 maxprocperuid = (maxproc * 2) / 3; in bsd_scale_setup() 351 maxproc = 2500 * scale; in bsd_scale_setup() 352 hard_maxproc = maxproc; in bsd_scale_setup() 354 maxprocperuid = (maxproc * 3) / 4; in bsd_scale_setup() 382 if (maxproc > hard_maxproc) { in bsd_scale_setup() 383 hard_maxproc = maxproc; in bsd_scale_setup()
|
| /xnu-11215/tests/ |
| H A D | proc_rlimit.c | 55 static rlim_t maxproc; variable 56 static size_t maxproc_size = sizeof(maxproc); 226 err = sysctlbyname("kern.maxproc", &maxproc, &maxproc_size, NULL, 0); 227 T_EXPECT_EQ_INT(0, err, "maxproc: %llu", maxproc);
|
| /xnu-11215/bsd/conf/ |
| H A D | param.c | 93 int maxproc = NPROC; variable
|
| /xnu-11215/bsd/kern/ |
| H A D | sys_reason.c | 38 extern int maxproc;
|
| H A D | kern_fork.c | 248 if ((nprocs >= maxproc - 1 && uid != 0) || nprocs >= maxproc) { in fork1()
|
| H A D | kern_resource.c | 1437 if (newrlim->rlim_cur > (rlim_t)maxproc) { in dosetrlimit() 1438 newrlim->rlim_cur = maxproc; in dosetrlimit() 1440 if (newrlim->rlim_max > (rlim_t)maxproc) { in dosetrlimit() 1441 newrlim->rlim_max = maxproc; in dosetrlimit()
|
| H A D | bsd_init.c | 652 limit0.pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; in bsd_init()
|
| H A D | kern_proc.c | 275 smr_hash_init(&pid_hash, maxproc / 4); in procinit() 276 smr_hash_init(&pgrp_hash, maxproc / 4); in procinit() 277 sesshashtbl = hashinit(maxproc / 4, M_PROC, &sesshash); in procinit() 278 uihashtbl = hashinit(maxproc / 16, M_PROC, &uihash); in procinit()
|
| H A D | kern_sysctl.c | 1785 int error = sysctl_io_number(req, maxproc, sizeof(int), &new_value, &changed); 1791 maxproc = new_value; 2365 SYSCTL_PROC(_kern, KERN_MAXPROC, maxproc,
|
| H A D | kern_credential.c | 3414 smr_shash_init(&kauth_cred_hash, SMRSH_BALANCED, maxproc / 4); in kauth_cred_init()
|
| H A D | kern_memorystatus.c | 1944 memorystatus_jetsam_snapshot_max = maxproc; in memorystatus_init()
|
| /xnu-11215/tests/vm/ |
| H A D | memorystatus_freeze_test.c | 1277 __block int maxproc; variable 1278 size_t maxproc_size = sizeof(maxproc); 1280 ret = sysctlbyname("kern.maxproc", &maxproc, &maxproc_size, NULL, 0); 1290 size_t buffer_len = sizeof(memorystatus_properties_entry_v1_t) * (size_t) maxproc;
|
| /xnu-11215/bsd/sys/ |
| H A D | proc_internal.h | 753 extern int nprocs, maxproc; /* Current and max number of procs. */
|
| /xnu-11215/osfmk/arm64/sptm/pmap/ |
| H A D | pmap.c | 459 extern int maxproc, hard_maxproc; 2178 if ((uint32_t)maxproc > pmap_max_asids) { in pmap_init() 2179 maxproc = pmap_max_asids; in pmap_init()
|
| /xnu-11215/osfmk/arm/pmap/ |
| H A D | pmap.c | 404 extern int maxproc, hard_maxproc; 2834 if ((uint32_t)maxproc > pmap_max_asids) { in pmap_init() 2835 maxproc = pmap_max_asids; in pmap_init()
|