syscall.sh / x86 / pipe2
pipe2
create pipe
sys_pipe2(int *fildes, int flags)
| number | 331 (0x14b) |
|---|---|
| abi | i386 |
| entry point | sys_pipe2 |
| since | Linux 3.3 |
| man page | pipe2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 331, the syscall number |
ebx | int *fildes |
ecx | int flags |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 293
- arm64 59
- arm 359
- riscv64 59
- x32 1073742117
- loongarch64 59
- ppc64 317
- ppc 317
- s390x 325
- mips64 5287
- mipsn32 6291
- mipso32 4328
- alpha 488
- arc 59
- 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/x86/pipe2