syscall.sh / arc / pipe2
pipe2
create pipe
sys_pipe2(int *fildes, int flags)
| number | 59 (0x3b) |
|---|---|
| abi | common |
| entry point | sys_pipe2 |
| since | Linux 3.9 |
| man page | pipe2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r8 | 59, the syscall number |
r0 | int *fildes |
r1 | int flags |
r0 | the return value |
Then run trap0 to enter the kernel.
Same syscall on other architectures
- x64 293
- x86 331
- arm64 59
- arm 359
- riscv64 59
- x32 1073742117
- loongarch64 59
- ppc64 317
- ppc 317
- s390x 325
- mips64 5287
- mipsn32 6291
- mipso32 4328
- alpha 488
- csky 59
- hexagon 59
- m68k 327
- microblaze 343
- nios2 59
- openrisc 59
- parisc 313
- sh 331
- sparc 321
- sparc64 321
- xtensa 311
Get this as JSON: https://api.syscall.sh/v2/syscalls/arc/pipe2