syscall.sh / riscv64 / sendfile

sendfile

transfer data between file descriptors

sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count)
number71 (0x47)
abi64
entry pointsys_sendfile64
sinceLinux 4.15
man pagesendfile(2)
sourceelixir.bootlin.com

Registers

registervalue
a771, the syscall number
a0int out_fd
a1int in_fd
a2loff_t *offset
a3size_t count
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/sendfile