syscall.sh / s390x / kcmp

kcmp

compare two processes to determine if they share a kernel resource

sys_kcmp(pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2)
number343 (0x157)
abicommon
entry pointsys_kcmp
sinceLinux 4.16
man pagekcmp(2)
sourceelixir.bootlin.com

Registers

registervalue
r1343, the syscall number
r2pid_t pid1
r3pid_t pid2
r4int type
r5unsigned long idx1
r6unsigned long idx2
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/kcmp