Lines Matching refs:pid
47 pid_t pid = -1; in call_clone3_set_tid() local
56 pid = sys_clone3(&args, sizeof(args)); in call_clone3_set_tid()
57 if (pid < 0) { in call_clone3_set_tid()
63 if (pid == 0) { in call_clone3_set_tid()
98 if (expected_pid == 0 || expected_pid == pid) { in call_clone3_set_tid()
100 getpid(), pid); in call_clone3_set_tid()
104 expected_pid, pid); in call_clone3_set_tid()
108 if (waitpid(pid, &status, 0) < 0) { in call_clone3_set_tid()
156 pid_t pid, ns1, ns2, ns3, ns_pid; in main() local
257 pid = fork(); in main()
258 if (pid == 0) { in main()
262 if (waitpid(pid, &status, 0) < 0) in main()
263 ksft_exit_fail_msg("Waiting for child %d failed", pid); in main()
266 set_tid[0] = pid; in main()
278 set_tid[1] = pid; in main()
279 test_clone3_set_tid(set_tid, 2, CLONE_NEWPID, 0, pid, 0); in main()
286 set_tid[0] = pid; in main()
303 set_tid[1] = pid; in main()
312 set_tid[2] = pid; in main()
318 set_tid[2] = pid; in main()
342 snprintf(proc_path, sizeof(proc_path), "/proc/%d/status", pid); in main()
385 if (ns3 == pid && ns2 == 42 && ns1 == 1) in main()