pipe2 on riscv64

create pipe

sys_pipe2(int *fildes, int flags)
number59 (0x3b)
abicommon
entry pointsys_pipe2
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagepipe2(2)
sourceelixir.bootlin.com

Registers

registervalue
a759, the syscall number
a0int *fildes
a1int flags
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/pipe2