⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

eventfd_create

Function eventfd_create 

Source
pub fn eventfd_create(initval: u32, flags: u32) -> Result<usize, SyscallError>
Expand description

Create a new eventfd.

§Arguments

  • initval: Initial counter value.
  • flags: Combination of EFD_SEMAPHORE, EFD_NONBLOCK, EFD_CLOEXEC.

§Returns

The eventfd ID (used as a pseudo-fd) on success.