syscall.sh / x32 / 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)
| number | 1073742136 (0x40000138) |
|---|---|
| abi | common |
| entry point | sys_kcmp |
| since | Linux 3.6 |
| man page | kcmp(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073742136, the syscall number |
rdi | pid_t pid1 |
rsi | pid_t pid2 |
rdx | int type |
r10 | unsigned long idx1 |
r8 | unsigned long idx2 |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 312
- x86 349
- arm64 272
- arm 378
- riscv64 272
- loongarch64 272
- ppc64 354
- ppc 354
- s390x 343
- mips64 5306
- mipsn32 6311
- mipso32 4347
- alpha 506
- arc 272
- csky 272
- hexagon 272
- m68k 347
- microblaze 379
- nios2 272
- openrisc 272
- parisc 332
- sh 367
- sparc 341
- sparc64 341
- xtensa 331
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/kcmp