sendfile64 on metag
transfer data between file descriptors
sys_sendfile64(int out_fd, int in_fd, loff_t *offset, size_t count)
| number | 71 (0x47) |
|---|---|
| abi | common |
| entry point | sys_sendfile64 |
| since | Linux 3.9 or earlier (3.9 is the first release scanned for metag) |
| man page | sendfile64(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
D1Re0 | 71, the syscall number |
D1Ar1 | int out_fd |
D0Ar2 | int in_fd |
D1Ar3 | loff_t *offset |
D0Ar4 | size_t count |
D0Re0 | the return value |
Then run SWITCH #0x440001 to enter the kernel.
Values wider than one register are packed into consecutive arguments.
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
- x86 239
- arm 239
- ia32 239
- ppc 226
- mipsn32 6219
- mipso32 4237
- arc 71
- blackfin 239, removed in 4.17
- cris 239, removed in 4.17
- csky 71
- frv 239, removed in 4.17
- hexagon 71
- m32r 239, removed in 4.17
- m68k 236
- microblaze 239
- mn10300 239, removed in 4.17
- nds32 71, removed in 5.18
- nios2 71
- openrisc 71
- parisc 209
- score 71, removed in 4.17
- sh 239
- sparc 140
- sparc64 140
- tilepro 71, removed in 4.17
- xtensa 114
Get this as JSON: https://api.syscall.sh/v2/syscalls/metag/sendfile64?kernel=all