Home
last modified time | relevance | path

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

/linux-6.3-rc2/tools/testing/selftests/kcmp/
A Dkcmp_test.c35 int pid1, pid2; in main() local
43 pid1 = getpid(); in main()
104 pid1, pid2, in main()
106 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main()
107 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main()
108 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main()
109 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main()
110 sys_kcmp(pid1, pid2, KCMP_IO, 0, 0), in main()
111 sys_kcmp(pid1, pid2, KCMP_SYSVSEM, 0, 0), in main()
129 ret = sys_kcmp(pid1, pid1, KCMP_VM, 0, 0); in main()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
A Dfib_nexthops.sh1066 local pid1
1087 pid1=$!
1098 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1114 local pid1
1141 pid1=$!
1154 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1838 local pid1
1859 pid1=$!
1870 kill -9 $pid1 $pid2 $pid3 $pid4 $pid5
1886 local pid1
[all …]
/linux-6.3-rc2/tools/testing/selftests/pidfd/
A 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()
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()
/linux-6.3-rc2/kernel/
A Dkcmp.c135 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 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-6.3-rc2/arch/parisc/include/asm/
A Dkgdb.h51 unsigned long pid1; member
/linux-6.3-rc2/drivers/gpu/drm/vmwgfx/
A Dvmwgfx_msg.c923 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_user_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() local
925 if (!pid1) in vmw_mksstat_remove_all()
928 if (pid1 == pid0) { in vmw_mksstat_remove_all()
953 const pid_t pid1 = atomic_cmpxchg(&dev_priv->mksstat_kern_pids[i], pid0, MKSSTAT_PID_RESERVED); in vmw_mksstat_remove_all() local
955 if (!pid1) in vmw_mksstat_remove_all()
958 if (pid1 == pid0) { in vmw_mksstat_remove_all()
/linux-6.3-rc2/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c302 static int __filecmp(pid_t pid1, pid_t pid2, int fd1, int fd2) in __filecmp() argument
306 return syscall(__NR_kcmp, pid1, pid2, KCMP_FILE, fd1, fd2); in __filecmp()
314 #define filecmp(pid1, pid2, fd1, fd2) ({ \ argument
317 _ret = __filecmp(pid1, pid2, fd1, fd2); \
3969 pid_t pid1, pid2; in TEST() local
3982 pid1 = fork(); in TEST()
3983 if (pid1 < 0) in TEST()
3986 if (pid1 == 0) in TEST()
4004 if (waitpid(pid1, &status, 0) != pid1 || !WIFEXITED(status) || in TEST()
/linux-6.3-rc2/arch/powerpc/include/uapi/asm/
A Dkvm.h202 __u32 pid1, pid2; member
/linux-6.3-rc2/tools/arch/powerpc/include/uapi/asm/
A Dkvm.h202 __u32 pid1, pid2; member
/linux-6.3-rc2/drivers/scsi/qla2xxx/
A Dqla_init.c9179 uint32_t pid1, pid2; in qla24xx_get_fcp_prio() local
9201 pid1 = pri_entry->src_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9203 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio()
9205 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
9211 pid1 = pri_entry->dst_pid & INVALID_PORT_ID; in qla24xx_get_fcp_prio()
9213 if (pid1 == INVALID_PORT_ID) in qla24xx_get_fcp_prio()
9215 else if (pid1 == pid2) in qla24xx_get_fcp_prio()
/linux-6.3-rc2/include/linux/
A Dsyscalls.h994 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,

Completed in 58 milliseconds