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

Registers

registervalue
d0347, the syscall number
d1pid_t pid1
d2pid_t pid2
d3int type
d4unsigned long idx1
d5unsigned long idx2
d0the return value

Then run trap #0 to enter the kernel.

Same syscall on other architectures

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