sys_pselect6

Function sys_pselect6 

Source
pub fn sys_pselect6(
    abi: &mut LinuxRiscv64Abi,
    trapframe: &mut Trapframe,
) -> usize
Expand description

Minimal Linux pselect6 implementation (stub)

Temporary reset: always returns immediately with 0 (no fds ready) and does not block. This avoids complex readiness/timeout semantics until the final design is in place.

Arguments (RISC-V register usage): arg0: nfds (number of file descriptors to check) arg1: readfds pointer (fd_set*) arg2: writefds pointer (fd_set*) arg3: exceptfds pointer (fd_set*) arg4: timeout pointer (timespec*) or NULL arg5: sigmask pointer (ignored)

Returns: number of ready descriptors, or -1 (usize::MAX) on error.