pub fn sys_recvfrom(
abi: &mut LinuxRiscv64Abi,
trapframe: &mut Trapframe,
) -> usizeExpand description
Linux sys_recvfrom implementation
Receive a message from a socket. Returns the source address if provided.
Arguments:
- abi: LinuxRiscv64Abi context
- trapframe: Trapframe containing syscall arguments
- arg0: sockfd (socket file descriptor)
- arg1: buf (pointer to receive buffer)
- arg2: len (length of buffer)
- arg3: flags (receive flags)
- arg4: src_addr (pointer to store source address, may be NULL)
- arg5: addrlen (pointer to address length, input/output)
Returns:
- number of bytes received on success
- negative errno on error