syscall.sh / x32 / sendfile
sendfile
transfer data between file descriptors
sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count)
| number | 1073741864 (0x40000028) |
|---|---|
| abi | common |
| entry point | sys_sendfile64 |
| since | Linux 3.4 |
| man page | sendfile(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741864, the syscall number |
rdi | int out_fd |
rsi | int in_fd |
rdx | loff_t *offset |
r10 | size_t count |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 40
- x86 187
- arm64 71
- arm 187
- riscv64 71
- loongarch64 71
- ppc64 186
- ppc 186
- s390x 187
- mips64 5039
- mipsn32 6039
- mipso32 4207
- alpha 370
- m68k 187
- microblaze 187
- parisc 122
- sh 187
- sparc 39
- sparc64 39
- xtensa 113
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/sendfile