sys_eventfd2

Function sys_eventfd2 

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

eventfd2 - create file descriptor for event notification

§Arguments

  • initval - Initial value of the event counter (unsigned int)
  • flags - Flags (bitwise OR of EFD_CLOEXEC, EFD_NONBLOCK, EFD_SEMAPHORE)

§Returns

  • New file descriptor on success
  • Error code on failure