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

signalfd_create

Function signalfd_create 

Source
pub fn signalfd_create(
    fd: i32,
    mask: u64,
    flags: u32,
) -> Result<usize, SyscallError>
Expand description

Create or update a signalfd.

§Arguments

  • fd: -1 to create new, or existing signalfd ID to update mask.
  • mask: Signal mask (bitmask of signals to monitor).
  • flags: Combination of SFD_NONBLOCK, SFD_CLOEXEC.

§Returns

The signalfd ID on success.