Home
last modified time | relevance | path

Searched refs:pid2 (Results 1 – 17 of 17) sorted by relevance

/linux/tools/testing/selftests/kcmp/
A Dkcmp_test.c35 int pid1, pid2; in main() local
81 pid2 = fork(); in main()
82 if (pid2 < 0) { in main()
87 if (!pid2) { in main()
88 int pid2 = getpid(); in main() local
101 pid1, pid2, in main()
103 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main()
104 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main()
105 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main()
107 sys_kcmp(pid1, pid2, KCMP_IO, 0, 0), in main()
[all …]
/linux/tools/testing/selftests/powerpc/math/
A Dfpu_syscall.c50 pid_t pid2; in test_syscall_fpu() local
56 pid2 = fork(); in test_syscall_fpu()
58 if (pid2 == -1) { in test_syscall_fpu()
65 if (pid2) in test_syscall_fpu()
66 waitpid(pid2, &child_ret, 0); in test_syscall_fpu()
A Dvmx_syscall.c51 pid_t pid2; in test_vmx_syscall() local
62 pid2 = fork(); in test_vmx_syscall()
65 if (pid2 == -1) { in test_vmx_syscall()
71 if (pid2) in test_vmx_syscall()
72 waitpid(pid2, &child_ret, 0); in test_vmx_syscall()
/linux/tools/testing/selftests/pidfd/
A Dpidfd_test.c199 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local
209 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail()
210 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail()
213 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail()
216 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
217 snprintf(buf, sizeof(buf), "/proc/%d", pid2); in test_pidfd_send_signal_recycled_pid_fail()
218 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail()
222 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail()
225 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail()
233 if (pid2 != PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
A Dpidfd_getfd_test.c30 static int sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, in sys_kcmp() argument
33 return syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in sys_kcmp()
A Dpidfd_setns_test.c314 static int in_same_namespace(int ns_fd1, pid_t pid2, const char *ns) in in_same_namespace() argument
324 ns_fd2 = preserve_ns(pid2, ns); in in_same_namespace()
/linux/tools/testing/selftests/net/
A Dfib_nexthops.sh1066 local pid2
1088 pid2=$!
1097 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1114 local pid2
1142 pid2=$!
1153 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1808 local pid2
1830 pid2=$!
1839 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1856 local pid2
[all …]
A Dtls.c1141 int pid2; in TEST_F() local
1151 pid2 = wait(&status); in TEST_F()
1153 EXPECT_EQ(res, pid2); in TEST_F()
1195 int pid2; in TEST_F() local
1211 pid2 = wait(&status); in TEST_F()
1214 EXPECT_EQ(res, pid2); in TEST_F()
/linux/kernel/
A Dkcmp.c135 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument
147 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
A Dpid.c371 struct pid *pid2 = right->thread_pid; in exchange_tids() local
373 struct hlist_head *head2 = &pid2->tasks[PIDTYPE_PID]; in exchange_tids()
379 rcu_assign_pointer(left->thread_pid, pid2); in exchange_tids()
383 WRITE_ONCE(left->pid, pid_nr(pid2)); in exchange_tids()
/linux/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c3626 pid_t pid, pid2; in TEST() local
3645 pid2 = fork(); in TEST()
3648 if (pid2 == 0) in TEST()
3651 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
3664 pid2 = fork(); in TEST()
3667 if (pid2 == 0) { in TEST()
3689 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
3921 pid2 = fork(); in TEST()
3922 if (pid2 < 0) in TEST()
3925 if (pid2 == 0) in TEST()
[all …]
/linux/arch/parisc/include/asm/
A Dkgdb.h52 unsigned long pid2; member
/linux/tools/perf/util/
A Djitdump.c746 pid_t pid2; in jit_detect() local
774 pid2 = (int)strtol(p, &end, 10); in jit_detect()
782 if (pid && pid2 != nsi->nstgid) in jit_detect()
/linux/tools/arch/powerpc/include/uapi/asm/
A Dkvm.h202 __u32 pid1, pid2; member
/linux/arch/powerpc/include/uapi/asm/
A Dkvm.h202 __u32 pid1, pid2; member
/linux/drivers/scsi/qla2xxx/
A Dqla_init.c9147 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local
9170 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9173 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
9180 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9183 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
/linux/include/linux/
A Dsyscalls.h996 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,

Completed in 55 milliseconds