/linux/tools/testing/selftests/kcmp/ |
A D | kcmp_test.c | 35 int pid1, pid2; in main() local 43 pid1 = getpid(); in main() 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() 106 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main() 107 sys_kcmp(pid1, pid2, KCMP_IO, 0, 0), in main() 108 sys_kcmp(pid1, pid2, KCMP_SYSVSEM, 0, 0), in main() 126 ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0); in main() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | fib_nexthops.sh | 1065 local pid1 1086 pid1=$! 1097 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1113 local pid1 1140 pid1=$! 1153 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1807 local pid1 1828 pid1=$! 1839 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5 1855 local pid1 [all …]
|
/linux/tools/testing/selftests/pidfd/ |
A D | pidfd_test.c | 154 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()
|
A D | pidfd_getfd_test.c | 30 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/kernel/ |
A D | kcmp.c | 135 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, in SYSCALL_DEFINE5() argument 146 task1 = find_task_by_vpid(pid1); in SYSCALL_DEFINE5()
|
A D | pid.c | 370 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/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_msg.c | 921 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() local 923 if (!pid1) in vmw_mksstat_remove_all() 926 if (pid1 == pid0) { in vmw_mksstat_remove_all() 951 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() local 953 if (!pid1) in vmw_mksstat_remove_all() 956 if (pid1 == pid0) { in vmw_mksstat_remove_all()
|
/linux/arch/parisc/include/asm/ |
A D | kgdb.h | 51 unsigned long pid1; member
|
/linux/tools/testing/selftests/seccomp/ |
A D | seccomp_bpf.c | 291 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument 295 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp() 303 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument 306 _ret = __filecmp(pid1, pid2, fd1, fd2); \ 3901 pid_t pid1, pid2; in TEST() local 3914 pid1 = fork(); in TEST() 3915 if (pid1 < 0) in TEST() 3918 if (pid1 == 0) in TEST() 3936 if (waitpid(pid1, &status, 0) != pid1 || !WIFEXITED(status) || in TEST()
|
/linux/tools/arch/powerpc/include/uapi/asm/ |
A D | kvm.h | 202 __u32 pid1, pid2; member
|
/linux/arch/powerpc/include/uapi/asm/ |
A D | kvm.h | 202 __u32 pid1, pid2; member
|
/linux/drivers/scsi/qla2xxx/ |
A D | qla_init.c | 9147 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local 9169 pid1 = pri_entry->src_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9171 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio() 9173 else if (pid1 == pid2) in qla24xx_get_fcp_prio() 9179 pid1 = pri_entry->dst_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio() 9181 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio() 9183 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
|
/linux/include/linux/ |
A D | syscalls.h | 996 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,
|