Searched refs:pid_max (Results 1 – 11 of 11) sorted by relevance
/linux/kernel/ |
H A D | pid.c | 69 * first use and are never deallocated. This way a low pid_max 84 .pid_max = PID_MAX_DEFAULT, 192 int pid_max = READ_ONCE(tmp->pid_max); in alloc_pid() local 198 if (tid < 1 || tid >= pid_max) in alloc_pid() 238 pid_max, GFP_ATOMIC); in alloc_pid() 741 .procname = "pid_max", 742 .data = &init_pid_ns.pid_max, 770 tbl->data = &pidns->pid_max; in register_pidns_sysctls() 771 pidns->pid_max in register_pidns_sysctls() [all...] |
/linux/tools/testing/selftests/clone3/ |
H A D | clone3_set_tid.c | 148 int pid_max = 0; in main() local 161 f = fopen("/proc/sys/kernel/pid_max", "r"); in main() 164 "%s - Could not open /proc/sys/kernel/pid_max\n", in main() 166 fscanf(f, "%d", &pid_max); in main() 168 ksft_print_msg("/proc/sys/kernel/pid_max %d\n", pid_max); in main() 249 /* pid_max should fail everywhere */ in main() 250 set_tid[0] = pid_max; in main()
|
/linux/tools/testing/selftests/pid_namespace/ |
H A D | .gitignore | 1 pid_max
|
H A D | Makefile | 4 TEST_GEN_PROGS = regression_enomem pid_max
|
/linux/include/linux/ |
H A D | pid_namespace.h | 33 int pid_max; member
|
/linux/tools/testing/kunit/test_data/ |
H A D | test_is_test_passed-no_tests_run_no_header.log | 19 pid_max: default: 32768 minimum: 301
|
H A D | test_output_isolated_correctly.log | 44 pid_max: default: 32768 minimum: 301
|
/linux/kernel/trace/ |
H A D | pid_list.c | 413 WARN_ON_ONCE(init_pid_ns.pid_max > (1 << 30)); in trace_pid_list_alloc()
|
H A D | trace_sched_switch.c | 445 tgid_map_max = init_pid_ns.pid_max; in trace_alloc_tgid_map()
|
/linux/tools/perf/ |
H A D | builtin-sched.c | 445 static int pid_max; in register_pid() local 448 if (sysctl__read_int("kernel/pid_max", &pid_max) < 0) in register_pid() 449 pid_max = MAX_PID; in register_pid() 450 BUG_ON((sched->pid_to_task = calloc(pid_max, sizeof(struct task_desc *))) == NULL); in register_pid() 452 if (pid >= (unsigned long)pid_max) { in register_pid() 455 while (pid >= (unsigned long)pid_max) in register_pid() 456 sched->pid_to_task[pid_max++] = NULL; in register_pid()
|
/linux/Documentation/admin-guide/sysctl/ |
H A D | kernel.rst | 1057 pid_max chapter 1062 PIDs of value ``pid_max`` or larger are not allocated.
|