syscall.sh / x86 / copy_file_range
copy_file_range
Copy a range of data from one file to another
sys_copy_file_range(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t len, unsigned int flags)
| number | 377 (0x179) |
|---|---|
| abi | i386 |
| entry point | sys_copy_file_range |
| since | Linux 4.5 |
| man page | copy_file_range(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 377, the syscall number |
ebx | int fd_in |
ecx | loff_t *off_in |
edx | int fd_out |
esi | loff_t *off_out |
edi | size_t len |
ebp | unsigned int flags |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- x64 326
- arm64 285
- arm 391
- riscv64 285
- x32 1073742150
- loongarch64 285
- ppc64 379
- ppc 379
- s390x 375
- mips64 5320
- mipsn32 6324
- mipso32 4360
- alpha 519
- arc 285
- csky 285
- hexagon 285
- m68k 376
- microblaze 392
- nios2 285
- openrisc 285
- parisc 346
- sh 380
- sparc 357
- sparc64 357
- xtensa 345
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/copy_file_range