Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/kcmp/
Dkcmp_test.c23 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
104 pid1, pid2, in main()
105 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main()
106 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main()
[all …]
/linux-6.1.9/tools/testing/selftests/powerpc/math/
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()
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-6.1.9/tools/testing/selftests/pidfd/
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()
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()
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-6.1.9/tools/testing/selftests/net/
Dfib_nexthops.sh1067 local pid2
1089 pid2=$!
1098 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1099 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1115 local pid2
1143 pid2=$!
1154 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1155 wait $pid1 $pid2 $pid3 $pid4 $pid5 2>/dev/null
1839 local pid2
1861 pid2=$!
[all …]
Dtls.c1170 int pid2; in TEST_F() local
1180 pid2 = wait(&status); in TEST_F()
1182 EXPECT_EQ(res, pid2); in TEST_F()
1224 int pid2; in TEST_F() local
1240 pid2 = wait(&status); in TEST_F()
1243 EXPECT_EQ(res, pid2); in TEST_F()
/linux-6.1.9/kernel/
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()
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-6.1.9/arch/parisc/include/asm/
Dkgdb.h52 unsigned long pid2; member
/linux-6.1.9/tools/testing/selftests/seccomp/
Dseccomp_bpf.c298 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
302 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
310 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
313 _ret = __filecmp(pid1, pid2, fd1, fd2); \
3677 pid_t pid, pid2; in TEST() local
3696 pid2 = fork(); in TEST()
3697 ASSERT_GE(pid2, 0); in TEST()
3699 if (pid2 == 0) in TEST()
3702 EXPECT_EQ(waitpid(pid2, &status, 0), pid2); in TEST()
3715 pid2 = fork(); in TEST()
[all …]
/linux-6.1.9/tools/perf/util/
Djitdump.c739 pid_t pid2; in jit_detect() local
767 pid2 = (int)strtol(p, &end, 10); in jit_detect()
775 if (pid && pid2 != nsinfo__nstgid(nsi)) in jit_detect()
/linux-6.1.9/tools/arch/powerpc/include/uapi/asm/
Dkvm.h202 __u32 pid1, pid2; member
/linux-6.1.9/arch/powerpc/include/uapi/asm/
Dkvm.h202 __u32 pid1, pid2; member
/linux-6.1.9/drivers/scsi/qla2xxx/
Dqla_init.c9219 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local
9242 pid2 = vha->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9245 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
9252 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9255 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
/linux-6.1.9/include/linux/
Dsyscalls.h992 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,