sys_epoll_wait

Function sys_epoll_wait 

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

Linux epoll_wait implementation (stub)

Waits for events on an epoll file descriptor. This is a stub implementation that immediately returns 0 (no events ready) to prevent blocking.

Arguments:

  • abi: LinuxRiscv64Abi context
  • trapframe: Trapframe containing syscall arguments
    • arg0: epfd (epoll file descriptor)
    • arg1: events (pointer to epoll_event array)
    • arg2: maxevents (maximum number of events)
    • arg3: timeout (timeout in milliseconds)

Returns:

  • number of ready events
  • usize::MAX (Linux -1) on error