syscall.sh / riscv64 / sendto
sendto
send a message on a socket
sys_sendto(int fd, void *buff, size_t len, unsigned int flags, struct sockaddr *addr, int addr_len)
| number | 206 (0xce) |
|---|---|
| abi | common |
| entry point | sys_sendto |
| since | Linux 4.15 |
| man page | sendto(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a7 | 206, the syscall number |
a0 | int fd |
a1 | void *buff |
a2 | size_t len |
a3 | unsigned int flags |
a4 | struct sockaddr *addr |
a5 | int addr_len |
a0 | the return value |
Then run ecall to enter the kernel.
Same syscall on other architectures
- x64 44
- x86 369
- arm64 206
- arm 290
- x32 1073741868
- loongarch64 206
- ppc64 335
- ppc 335
- s390x 369
- mips64 5043
- mipsn32 6043
- mipso32 4180
- alpha 133
- arc 206
- csky 206
- hexagon 206
- m68k 366
- microblaze 353
- nios2 206
- openrisc 206
- parisc 82
- sh 349
- sparc 133
- sparc64 133
- xtensa 110
Get this as JSON: https://api.syscall.sh/v2/syscalls/riscv64/sendto