/linux-4.1.27/tools/testing/selftests/kcmp/ |
H A D | kcmp_test.c | 22 static long sys_kcmp(int pid1, int pid2, int type, int fd1, int fd2) sys_kcmp() argument 24 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); sys_kcmp() 30 int pid1, pid2; main() local 42 pid2 = fork(); main() 43 if (pid2 < 0) { main() 48 if (!pid2) { main() 49 int pid2 = getpid(); main() local 59 printf("pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld " main() 62 pid1, pid2, main() 63 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), main() 64 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), main() 65 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), main() 66 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), main() 67 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), main() 68 sys_kcmp(pid1, pid2, KCMP_IO, 0, 0), main() 69 sys_kcmp(pid1, pid2, KCMP_SYSVSEM, 0, 0), main() 72 sys_kcmp(pid1, pid2, KCMP_TYPES + 1, 0, 0)); main() 75 ret = sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd1); main() 106 waitpid(pid2, &status, P_ALL); main()
|
/linux-4.1.27/kernel/ |
H A D | kcmp.c | 97 SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type, SYSCALL_DEFINE5() 109 task2 = find_task_by_vpid(pid2); SYSCALL_DEFINE5()
|
/linux-4.1.27/arch/s390/kernel/ |
H A D | compat_wrapper.c | 212 COMPAT_SYSCALL_WRAP5(kcmp, pid_t, pid1, pid_t, pid2, int, type, unsigned long, idx1, unsigned long, idx2);
|
/linux-4.1.27/arch/powerpc/include/uapi/asm/ |
H A D | kvm.h | 192 __u32 pid1, pid2; member in struct:kvm_sregs::__anon2343::__anon2348::__anon2349::__anon2350
|
/linux-4.1.27/drivers/scsi/qla2xxx/ |
H A D | qla_init.c | 6425 uint32_t pid1, pid2; qla24xx_get_fcp_prio() local 6448 pid2 = vha->d_id.b24 & INVALID_PORT_ID; qla24xx_get_fcp_prio() 6451 else if (pid1 == pid2) qla24xx_get_fcp_prio() 6458 pid2 = fcport->d_id.b24 & INVALID_PORT_ID; qla24xx_get_fcp_prio() 6461 else if (pid1 == pid2) qla24xx_get_fcp_prio()
|
/linux-4.1.27/include/linux/ |
H A D | syscalls.h | 874 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type,
|