syscall.sh / arm64 / 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)
number272 (0x110)
abicommon
entry pointsys_kcmp
sinceLinux 3.7
man pagekcmp(2)
sourceelixir.bootlin.com

Registers

registervalue
x8272, the syscall number
x0pid_t pid1
x1pid_t pid2
x2int type
x3unsigned long idx1
x4unsigned long idx2
x0the 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/arm64/kcmp