/Linux-v5.4/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2) in sys_kcmp() argument 25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp() 35 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() 102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main() 103 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main() [all …]
|
/Linux-v5.4/tools/testing/selftests/powerpc/math/ |
D | fpu_syscall.c | 50 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()
|
D | vmx_syscall.c | 51 pid_t pid2; in test_vmx_syscall() local 57 pid2 = fork(); in test_vmx_syscall() 60 if (pid2 == -1) { in test_vmx_syscall() 66 if (pid2) in test_vmx_syscall() 67 waitpid(pid2, &child_ret, 0); in test_vmx_syscall()
|
/Linux-v5.4/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 164 pid_t pid2; in test_pidfd_send_signal_recycled_pid_fail() local 174 pid2 = fork(); in test_pidfd_send_signal_recycled_pid_fail() 175 if (pid2 < 0) in test_pidfd_send_signal_recycled_pid_fail() 178 if (pid2 == 0) in test_pidfd_send_signal_recycled_pid_fail() 181 if (pid2 == PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail() 182 snprintf(buf, sizeof(buf), "/proc/%d", pid2); in test_pidfd_send_signal_recycled_pid_fail() 183 ksft_print_msg("pid to recycle is %d\n", pid2); in test_pidfd_send_signal_recycled_pid_fail() 187 if (wait_for_pid(pid2)) in test_pidfd_send_signal_recycled_pid_fail() 190 if (pid2 >= PID_RECYCLE) in test_pidfd_send_signal_recycled_pid_fail() 198 if (pid2 != PID_RECYCLE) { in test_pidfd_send_signal_recycled_pid_fail()
|
/Linux-v5.4/arch/parisc/include/asm/ |
D | kgdb.h | 52 unsigned long pid2; member
|
/Linux-v5.4/kernel/ |
D | kcmp.c | 152 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument 164 task2 = find_task_by_vpid(pid2); in SYSCALL_DEFINE5()
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | tls.c | 805 int pid2; in TEST_F() local 815 pid2 = wait(&status); in TEST_F() 817 EXPECT_EQ(res, pid2); in TEST_F() 859 int pid2; in TEST_F() local 875 pid2 = wait(&status); in TEST_F() 878 EXPECT_EQ(res, pid2); in TEST_F()
|
/Linux-v5.4/tools/perf/util/ |
D | jitdump.c | 702 pid_t pid2; in jit_detect() local 730 pid2 = (int)strtol(p, &end, 10); in jit_detect() 738 if (pid && pid2 != pid) in jit_detect()
|
/Linux-v5.4/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 3376 pid_t pid, pid2; in TEST() local 3395 pid2 = fork(); in TEST() 3396 ASSERT_GE(pid2, 0); in TEST() 3398 if (pid2 == 0) in TEST() 3401 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST() 3411 pid2 = fork(); in TEST() 3412 ASSERT_GE(pid2, 0); in TEST() 3414 if (pid2 == 0) { in TEST() 3436 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
|
/Linux-v5.4/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 202 __u32 pid1, pid2; member
|
/Linux-v5.4/tools/arch/powerpc/include/uapi/asm/ |
D | kvm.h | 202 __u32 pid1, pid2; member
|
/Linux-v5.4/drivers/scsi/qla2xxx/ |
D | qla_init.c | 8701 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local 8724 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 8727 else if (pid1 == pid2) in qla24xx_get_fcp_prio() 8734 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 8737 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
|
/Linux-v5.4/include/linux/ |
D | syscalls.h | 949 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,
|