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