Home
last modified time | relevance | path

Searched refs:pid1 (Results 1 – 12 of 12) sorted by relevance

/Linux-v5.10/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
43 pid1 = getpid(); in main()
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()
104 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main()
105 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main()
106 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main()
[all …]
/Linux-v5.10/tools/testing/selftests/pidfd/
Dpidfd_test.c154 pid_t pid1; in test_pidfd_send_signal_recycled_pid_fail() local
192 pid1 = fork(); in test_pidfd_send_signal_recycled_pid_fail()
193 if (pid1 < 0) in test_pidfd_send_signal_recycled_pid_fail()
197 if (pid1 == 0) { in test_pidfd_send_signal_recycled_pid_fail()
323 ret = wait_for_pid(pid1); 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()
/Linux-v5.10/arch/parisc/include/asm/
Dkgdb.h51 unsigned long pid1; member
/Linux-v5.10/kernel/
Dkcmp.c152 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument
163 task1 = find_task_by_vpid(pid1); in SYSCALL_DEFINE5()
Dpid.c370 struct pid *pid1 = left->thread_pid; in exchange_tids() local
372 struct hlist_head *head1 = &pid1->tasks[PIDTYPE_PID]; in exchange_tids()
380 rcu_assign_pointer(right->thread_pid, pid1); in exchange_tids()
384 WRITE_ONCE(right->pid, pid_nr(pid1)); in exchange_tids()
/Linux-v5.10/tools/testing/selftests/net/
Dfib_nexthops.sh844 local pid1
865 pid1=$!
876 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1446 local pid1
1467 pid1=$!
1478 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
/Linux-v5.10/tools/testing/selftests/seccomp/
Dseccomp_bpf.c287 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
291 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
299 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
302 _ret = __filecmp(pid1, pid2, fd1, fd2); \
3888 pid_t pid1, pid2; in TEST() local
3901 pid1 = fork(); in TEST()
3902 if (pid1 < 0) in TEST()
3905 if (pid1 == 0) in TEST()
3923 if (waitpid(pid1, &status, 0) != pid1 || !WIFEXITED(status) || in TEST()
/Linux-v5.10/arch/powerpc/include/uapi/asm/
Dkvm.h202 __u32 pid1, pid2; member
/Linux-v5.10/tools/arch/powerpc/include/uapi/asm/
Dkvm.h202 __u32 pid1, pid2; member
/Linux-v5.10/drivers/scsi/qla2xxx/
Dqla_init.c8803 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local
8825 pid1 = pri_entry->src_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
8827 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio()
8829 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
8835 pid1 = pri_entry->dst_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
8837 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio()
8839 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
/Linux-v5.10/include/linux/
Dsyscalls.h956 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,