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

Registers

registervalue
g1341, the syscall number
o0pid_t pid1
o1pid_t pid2
o2int type
o3unsigned long idx1
o4unsigned long idx2
o0the return value

Then run t 0x10 to enter the kernel.

Same syscall on other architectures

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