Lines Matching refs:pid
45 pid_t pid = -1; in call_clone3_set_tid() local
54 pid = sys_clone3(&args, sizeof(args)); in call_clone3_set_tid()
55 if (pid < 0) { in call_clone3_set_tid()
61 if (pid == 0) { in call_clone3_set_tid()
96 if (expected_pid == 0 || expected_pid == pid) { in call_clone3_set_tid()
98 getpid(), pid); in call_clone3_set_tid()
102 expected_pid, pid); in call_clone3_set_tid()
106 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
151 pid_t pid, ns1, ns2, ns3, ns_pid; in main() local
270 pid = fork(); in main()
271 if (pid == 0) { in main()
275 if (waitpid(pid, &status, 0) < 0) in main()
276 ksft_exit_fail_msg("Waiting for child %d failed", pid); in main()
279 set_tid[0] = pid; in main()
293 set_tid[1] = pid; in main()
295 set_tid, 2, CLONE_NEWPID, 0, pid, 0); in main()
302 set_tid[0] = pid; in main()
321 set_tid[1] = pid; in main()
332 set_tid[2] = pid; in main()
339 set_tid[2] = pid; in main()
365 snprintf(proc_path, sizeof(proc_path), "/proc/%d/status", pid); in main()
408 ksft_print_msg("Expecting PIDs %d, 42, 1\n", pid); in main()
410 ksft_test_result(ns3 == pid && ns2 == 42 && ns1 == 1, in main()