kcmp on ia32

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)
number349 (0x15d)
abii386
kconfigCONFIG_KCMP
entry pointsys_kcmp
sinceLinux 3.5
man pagekcmp(2)
sourceelixir.bootlin.com

Registers

registervalue
eax349, the syscall number
ebxpid_t pid1
ecxpid_t pid2
edxint type
esiunsigned long idx1
ediunsigned long idx2
eaxthe return value

Then run int 0x80 to enter the kernel.

This compat ABI is only available when the kernel is built with CONFIG_IA32_EMULATION.

Same syscall on other architectures

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