syscall.sh / mipsn32 / 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 | 6311 (0x18a7) |
|---|---|
| abi | n32 |
| entry point | sys_kcmp |
| since | Linux 5.0 |
| man page | kcmp(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 6311, the syscall number |
a0 | pid_t pid1 |
a1 | pid_t pid2 |
a2 | int type |
a3 | unsigned long idx1 |
a4 | unsigned long idx2 |
v0 | 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
- x32 1073742136
- loongarch64 272
- ppc64 354
- ppc 354
- s390x 343
- mips64 5306
- 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/mipsn32/kcmp