syscall.sh / xtensa / recv
recv
receive a message from a socket
sys_recv(int fd, void *ubuf, size_t size, unsigned int flags)
| number | 109 (0x6d) |
|---|---|
| abi | common |
| entry point | sys_recv |
| since | Linux 5.0 |
| man page | recv(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
a2 | 109, the syscall number |
a6 | int fd |
a3 | void *ubuf |
a4 | size_t size |
a5 | unsigned int flags |
a2 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/xtensa/recv