sendfile on score
transfer data between file descriptors
sys_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
| number | 1046 (0x416) |
|---|---|
| abi | common |
| entry point | sys_sendfile |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | sendfile(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 1046, the syscall number |
r4 | int out_fd |
r5 | int in_fd |
r6 | off_t *offset |
r7 | size_t count |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 40
- x86 187
- arm64 71
- arm 187
- riscv64 71
- ia32 187
- x32 1073741864
- loongarch64 71
- ppc64 186
- ppc 186
- s390x 187
- mips64 5039
- mipsn32 6039
- mipso32 4207
- alpha 370
- blackfin 187, removed in 4.17
- cris 187, removed in 4.17
- frv 187, removed in 4.17
- ia64 1187, removed in 6.7
- m32r 187, removed in 4.17
- m68k 187
- microblaze 187
- mn10300 187, removed in 4.17
- parisc 122
- sh 187
- sparc 39
- sparc64 39
- tilegx 71, removed in 4.17
- xtensa 113
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/sendfile?kernel=all