sys_pidfd_send_signal

Function sys_pidfd_send_signal 

Source
pub fn sys_pidfd_send_signal(
    _locked: &mut Locked<Unlocked>,
    current_task: &CurrentTask,
    pidfd: FdNumber,
    unchecked_signal: UncheckedSignal,
    siginfo_ref: UserAddress,
    flags: u32,
) -> Result<(), Errno>
Expand description

The pidfd_send_signal syscall sends a signal to a process specified by a PID file descriptor.

§Args

  • pidfd: The PID file descriptor of the process to send the signal to.
  • unchecked_signal: The signal to send.
  • siginfo_ref: An optional pointer to a siginfo_t structure that contains the signal payload.
  • flags: Must be 0.

§Returns

Ok(()) on success. Otherwise, returns an Errno with the error code.