syscall.sh / riscv64 / preadv2

preadv2

read or write data into multiple buffers

sys_preadv2(unsigned long fd, const struct iovec *vec, unsigned long vlen, unsigned long pos_l, unsigned long pos_h, rwf_t flags)
number286 (0x11e)
abicommon
entry pointsys_preadv2
sinceLinux 4.15
man pagepreadv2(2)
sourceelixir.bootlin.com

Registers

registervalue
a7286, the syscall number
a0unsigned long fd
a1const struct iovec *vec
a2unsigned long vlen
a3unsigned long pos_l
a4unsigned long pos_h
a5rwf_t 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/preadv2