Searched refs:pid_max (Results 1 – 1 of 1) sorted by relevance
333 static int pid_max; in register_pid() local336 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0) in register_pid()337 pid_max = MAX_PID; in register_pid()338 BUG_ON((sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *))) == NULL); in register_pid()340 if (pid >= (unsigned long)pid_max) { in register_pid()343 while (pid >= (unsigned long)pid_max) in register_pid()344 sched->pid_to_task[pid_max++] = NULL; in register_pid()