Home
last modified time | relevance | path

Searched refs:maxproc (Results 1 – 16 of 16) sorted by relevance

/xnu-12377.1.9/bsd/dev/
H A Dunix_startup.c316 maxproc *= scale; in bsd_scale_setup()
317 maxprocperuid = (maxproc * 2) / 3; in bsd_scale_setup()
323 maxproc = 2500 * scale; in bsd_scale_setup()
324 hard_maxproc = maxproc; in bsd_scale_setup()
326 maxprocperuid = (maxproc * 3) / 4; in bsd_scale_setup()
347 if (maxproc > hard_maxproc) { in bsd_scale_setup()
348 hard_maxproc = maxproc; in bsd_scale_setup()
/xnu-12377.1.9/tests/
H A Dpmap_stress.c133 int maxproc; variable
134 size_t maxproc_size = sizeof(maxproc);
135 sysctlbyname("kern.maxproc", &maxproc, &maxproc_size, NULL, 0);
137 int num_surts = maxproc;
H A Dproc_rlimit.c55 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-12377.1.9/bsd/conf/
H A Dparam.c93 int maxproc = NPROC; variable
/xnu-12377.1.9/bsd/kern/
H A Dsys_reason.c38 extern int maxproc;
H A Dkern_fork.c248 if ((nprocs >= maxproc - 1 && uid != 0) || nprocs >= maxproc) { in fork1()
H A Dkern_resource.c1663 if (newrlim->rlim_cur > (rlim_t)maxproc) { in dosetrlimit()
1664 newrlim->rlim_cur = maxproc; in dosetrlimit()
1666 if (newrlim->rlim_max > (rlim_t)maxproc) { in dosetrlimit()
1667 newrlim->rlim_max = maxproc; in dosetrlimit()
H A Dbsd_init.c655 limit0.pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; in bsd_init()
H A Dkern_proc.c282 smr_hash_init(&pid_hash, maxproc / 4); in procinit()
283 smr_hash_init(&pgrp_hash, maxproc / 4); in procinit()
284 sesshashtbl = hashinit(maxproc / 4, M_PROC, &sesshash); in procinit()
285 uihashtbl = hashinit(maxproc / 16, M_PROC, &uihash); in procinit()
H A Dkern_sysctl.c1798 int error = sysctl_io_number(req, maxproc, sizeof(int), &new_value, &changed);
1804 maxproc = new_value;
2422 SYSCTL_PROC(_kern, KERN_MAXPROC, maxproc,
H A Dkern_credential.c3414 smr_shash_init(&kauth_cred_hash, SMRSH_BALANCED, maxproc / 4); in kauth_cred_init()
H A Dkern_memorystatus.c2152 memorystatus_jetsam_snapshot_max = maxproc; in memorystatus_init()
/xnu-12377.1.9/tests/vm/
H A Dmemorystatus_freeze_test.c1318 __block int maxproc; variable
1319 size_t maxproc_size = sizeof(maxproc);
1322 ret = sysctlbyname("kern.maxproc", &maxproc, &maxproc_size, NULL, 0);
1332 size_t buffer_len = sizeof(memorystatus_properties_entry_v1_t) * (size_t) maxproc;
/xnu-12377.1.9/bsd/sys/
H A Dproc_internal.h748 extern int nprocs, maxproc; /* Current and max number of procs. */
/xnu-12377.1.9/osfmk/arm64/sptm/pmap/
H A Dpmap.c493 extern int maxproc, hard_maxproc;
2297 if ((uint32_t)maxproc > pmap_max_asids) { in pmap_init()
2298 maxproc = pmap_max_asids; in pmap_init()
/xnu-12377.1.9/osfmk/arm/pmap/
H A Dpmap.c409 extern int maxproc, hard_maxproc;
2865 if ((uint32_t)maxproc > pmap_max_asids) { in pmap_init()
2866 maxproc = pmap_max_asids; in pmap_init()