syscall.sh / openrisc / 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 | 272 (0x110) |
|---|---|
| abi | common |
| entry point | sys_kcmp |
| since | Linux 3.7 |
| man page | kcmp(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r11 | 272, the syscall number |
r3 | pid_t pid1 |
r4 | pid_t pid2 |
r5 | int type |
r6 | unsigned long idx1 |
r7 | unsigned long idx2 |
r11 | the return value |
Then run l.sys 1 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
- mipsn32 6311
- mipso32 4347
- alpha 506
- arc 272
- csky 272
- hexagon 272
- m68k 347
- microblaze 379
- nios2 272
- parisc 332
- sh 367
- sparc 341
- sparc64 341
- xtensa 331
Get this as JSON: https://api.syscall.sh/v2/syscalls/openrisc/kcmp