vmsplice on riscv64
splice user pages to/from a pipe
sys_vmsplice(int fd, const struct iovec *iov, unsigned long nr_segs, unsigned int flags)
| number | 75 (0x4b) |
|---|---|
| abi | common |
| entry point | sys_vmsplice |
| since | Linux 4.15 or earlier (4.15 is the first release scanned for riscv64) |
| man page | vmsplice(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 75, the syscall number |
a0 | int fd |
a1 | const struct iovec *iov |
a2 | unsigned long nr_segs |
a3 | unsigned int flags |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 278
- x86 316
- arm64 75
- arm 343
- ia32 316
- x32 1073742356
- loongarch64 75
- ppc64 285
- ppc 285
- s390x 309
- mips64 5266
- mipsn32 6270
- mipso32 4307
- alpha 471
- arc 75
- blackfin 345, removed in 4.17
- cris 316, removed in 4.17
- csky 75
- frv 316, removed in 4.17
- hexagon 75
- ia64 1302, removed in 6.7
- m32r 316, removed in 4.17
- m68k 309
- metag 75, removed in 4.17
- microblaze 316
- mn10300 317, removed in 4.17
- nds32 75, removed in 5.18
- nios2 75
- openrisc 75
- parisc 294
- score 75, removed in 4.17
- sh 316
- sparc 25
- sparc64 25
- tilegx 75, removed in 4.17
- tilepro 75, removed in 4.17
- xtensa 270
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/vmsplice