Home
last modified time | relevance | path

Searched refs:pid_max (Results 1 – 11 of 11) sorted by relevance

/linux/kernel/
H A Dpid.c69 * 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 Dclone3_set_tid.c148 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.gitignore1 pid_max
H A DMakefile4 TEST_GEN_PROGS = regression_enomem pid_max
/linux/include/linux/
H A Dpid_namespace.h33 int pid_max; member
/linux/tools/testing/kunit/test_data/
H A Dtest_is_test_passed-no_tests_run_no_header.log19 pid_max: default: 32768 minimum: 301
H A Dtest_output_isolated_correctly.log44 pid_max: default: 32768 minimum: 301
/linux/kernel/trace/
H A Dpid_list.c413 WARN_ON_ONCE(init_pid_ns.pid_max > (1 << 30)); in trace_pid_list_alloc()
H A Dtrace_sched_switch.c445 tgid_map_max = init_pid_ns.pid_max; in trace_alloc_tgid_map()
/linux/tools/perf/
H A Dbuiltin-sched.c445 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 Dkernel.rst1057 pid_max chapter
1062 PIDs of value ``pid_max`` or larger are not allocated.