Searched refs:maxproc (Results 1 – 16 of 16) sorted by relevance
| /xnu-12377.1.9/bsd/dev/ |
| H A D | unix_startup.c | 316 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 D | pmap_stress.c | 133 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 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-12377.1.9/bsd/conf/ |
| H A D | param.c | 93 int maxproc = NPROC; variable
|
| /xnu-12377.1.9/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 | 1663 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 D | bsd_init.c | 655 limit0.pl_rlimit[RLIMIT_NPROC].rlim_max = maxproc; in bsd_init()
|
| H A D | kern_proc.c | 282 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 D | kern_sysctl.c | 1798 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 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 | 2152 memorystatus_jetsam_snapshot_max = maxproc; in memorystatus_init()
|
| /xnu-12377.1.9/tests/vm/ |
| H A D | memorystatus_freeze_test.c | 1318 __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 D | proc_internal.h | 748 extern int nprocs, maxproc; /* Current and max number of procs. */
|
| /xnu-12377.1.9/osfmk/arm64/sptm/pmap/ |
| H A D | pmap.c | 493 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 D | pmap.c | 409 extern int maxproc, hard_maxproc; 2865 if ((uint32_t)maxproc > pmap_max_asids) { in pmap_init() 2866 maxproc = pmap_max_asids; in pmap_init()
|