syscall.sh / sh / pipe
pipe
create pipe
sys_sh_pipe(int *fildes)
| number | 42 (0x2a) |
|---|---|
| abi | common |
| entry point | sys_sh_pipe |
| since | Linux 5.0 |
| man page | pipe(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 42, the syscall number |
r4 | int *fildes |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x64 22
- x86 42
- arm 42
- x32 1073741846
- ppc64 42
- ppc 42
- s390x 42
- mips64 5021
- mipsn32 6021
- mipso32 4042
- alpha 42
- m68k 42
- microblaze 42
- parisc 42
- sparc 42
- sparc64 42
- xtensa 37
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/pipe