Searched refs:pid_max (Results 1 – 5 of 5) sorted by relevance
/linux-4.1.27/kernel/ |
D | pid.c | 48 int pid_max = PID_MAX_DEFAULT; variable 160 if (pid >= pid_max) in alloc_pidmap() 169 max_scan = DIV_ROUND_UP(pid_max, BITS_PER_PAGE) - !offset; in alloc_pidmap() 198 if (pid >= pid_max) in alloc_pidmap() 202 if (map < &pid_ns->pidmap[(pid_max-1)/BITS_PER_PAGE]) { in alloc_pidmap() 596 pid_max = min(pid_max_max, max_t(int, pid_max, in pidmap_init() 600 pr_info("pid_max: default: %u minimum: %u\n", pid_max, pid_max_min); in pidmap_init()
|
D | pid_namespace.c | 292 extern int pid_max; 301 .extra2 = &pid_max,
|
D | sysctl.c | 105 extern int pid_max; 764 .data = &pid_max,
|
/linux-4.1.27/tools/perf/ |
D | builtin-sched.c | 331 static int pid_max; in register_pid() local 334 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0) in register_pid() 335 pid_max = MAX_PID; in register_pid() 336 BUG_ON((sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *))) == NULL); in register_pid() 338 if (pid >= (unsigned long)pid_max) { in register_pid() 341 while (pid >= (unsigned long)pid_max) in register_pid() 342 sched->pid_to_task[pid_max++] = NULL; in register_pid()
|
/linux-4.1.27/Documentation/sysctl/ |
D | kernel.txt | 60 - pid_max 616 pid_max: 620 PIDs of value pid_max or larger are not allocated.
|