syscall.sh / sh / sendfile

sendfile

transfer data between file descriptors

sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
number187 (0xbb)
abicommon
entry pointsys_sendfile
sinceLinux 5.0
man pagesendfile(2)
sourceelixir.bootlin.com

Registers

registervalue
r3187, the syscall number
r4int out_fd
r5int in_fd
r6off_t *offset
r7size_t count
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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