ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

sys_sendfile

T1 multi syscall syscall
Linux Syscall sendfile (x86-64=40 | arm64/riscv64=71)
SourceLinux Kernel Cross-ISA Syscall Tables (x86-64, arm64, riscv64) (linux_syscalls)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeLinux 6.x
Linux x86-64, arm64, riscv64
License & VersionGPL-2.0
torvalds/master
Upstreamhttps://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_64.tbl
Privilegeuser->supervisor
Extensionsarm64, riscv64, x86-64

Summary

Linux kernel system call sendfile (kernel entry: sys_sendfile64). Numbers: x86-64=40 | arm64/riscv64=71.

Syntax / Encoding

mov eax, 40; syscall  // sys_sendfile64(rdi, rsi, rdx, r10, r8, r9)
mov x8, #71; svc #0  // sys_sendfile64(x0..x5)
li a7, 71; ecall  // sys_sendfile64(a0..a5)