sys_tgkill

Function sys_tgkill 

Source
pub fn sys_tgkill(
    locked: &mut Locked<Unlocked>,
    current_task: &CurrentTask,
    tgid: pid_t,
    tid: tid_t,
    unchecked_signal: UncheckedSignal,
) -> Result<(), Errno>
Expand description

The tgkill syscall sends the signal unchecked_signal to the thread with thread ID tid in the thread group tgid.

§Args

  • tgid: The thread group ID of the target thread.
  • tid: The thread ID of the target thread.
  • unchecked_signal: The signal to send.

§Returns

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