syscall.sh / sh / sendfile64
sendfile64
transfer data between file descriptors
sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count)
| number | 239 (0xef) |
|---|---|
| abi | common |
| entry point | sys_sendfile64 |
| since | Linux 5.0 |
| man page | sendfile64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 239, the syscall number |
r4 | int out_fd |
r5 | int in_fd |
r6 | loff_t *offset |
r7 | size_t count |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 239
- arm 239
- ppc 226
- mipsn32 6219
- mipso32 4237
- arc 71
- csky 71
- hexagon 71
- m68k 236
- microblaze 239
- nios2 71
- openrisc 71
- parisc 209
- sparc 140
- sparc64 140
- xtensa 114
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/sendfile64