syscall.sh / s390x / sendfile

sendfile

transfer data between file descriptors

sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count)
number187 (0xbb)
abicommon
entry pointsys_sendfile64
sinceLinux 4.16
man pagesendfile(2)
sourceelixir.bootlin.com

Registers

registervalue
r1187, the syscall number
r2int out_fd
r3int in_fd
r4loff_t *offset
r5size_t count
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/s390x/sendfile