syscall.sh / sh / 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)
number367 (0x16f)
abicommon
entry pointsys_kcmp
sinceLinux 5.0
man pagekcmp(2)
sourceelixir.bootlin.com

Registers

registervalue
r3367, the syscall number
r4pid_t pid1
r5pid_t pid2
r6int type
r7unsigned long idx1
r0unsigned long idx2
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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