signal SIGADDSET SIGDELSET SETEMPTYSET SIGFILLSET SIGISMEMBER SIGISEMPTY SIGNOTEMPTY SIGSETEQ SIGSETNEQ SIGSETOR SIGSETAND SIGSETNAND SIGSETCANTMASK SIG_STOPSIGMASK SIG_CONTSIGMASK SIGPENDING cursig execsigs issignal killproc pgsigio postsig sigexit siginit signotify trapsignal - kernel signal functions
macro removes Fa signo from Fa set . No effort is made to ensure that Fa signo is a valid signal number.
macro clears all signals in Fa set .
macro sets all signals in Fa set .
macro determines if Fa signo is set in Fa set .
macro determines if Fa set does not have any signals set.
macro determines if Fa set has any signals set.
macro determines if two signal sets are equal; that is, the same signals are set in both.
macro determines if two signal sets differ; that is, if any signal set in one is not set in the other.
macro ORs the signals set in Fa set2 into Fa set1 .
macro ANDs the signals set in Fa set2 into Fa set1 .
macro NANDs the signals set in Fa set2 into Fa set1 .
macro clears the SIGKILL and SIGSTOP signals from Fa set . These two signals cannot be blocked or caught and SIG_CANTMASK ();
is used in code where signals are manipulated to ensure this policy is enforced.
macro clears the SIGSTOP SIGTSTP SIGTTIN and SIGTTOU signals from Fa set . SIG_STOPSIGMASK ();
is used to clear stop signals when a process is waiting for a child to exit or exec, and when a process is continuing after having been suspended.
macro clears the SIGCONT signal from Fa set . SIG_CONTSIGMASK ();
is called when a process is stopped.
macro determines if the given process has any pending signals that are not masked. If the process has a pending signal and the process is currently being traced, SIGPENDING ();
will return true even if the signal is masked.
function returns the signal number that should be delivered to process Fa td->td_proc . If there are no signals pending, zero is returned.
function resets the signal set and signal stack of a process in preparation for an execve(2). The lock for Fa p must be held before execsigs ();
function determines if there are any pending signals for process Fa td->td_proc that should be caught, or cause this process to terminate or interrupt its current system call. If process Fa td->td_proc is currently being traced, ignored signals will be handled and the process is always stopped. Stop signals are handled and cleared right away by issignal ();
unless the process is a member of an orphaned process group and the stop signal originated from a TTY. The sched_lock lock may be acquired and released, and if Giant is held, it may be released and reacquired. The Vt sigacts structure Fa td->td_proc->p_sigacts must be locked before calling issignal ();
and may be released and reacquired during the call. The process lock for Fa td->td_proc must be acquired before calling issignal ();
and may be released and reacquired during the call. The lock for the parent of Fa td->td_proc may also be acquired and released. Default signal actions are not taken for system processes and init.
function delivers SIGKILL to Fa p . Fa why is logged as the reason why the process was killed.
function sends the signal Fa sig to the process or process group Fa sigiop->sio_pgid . If Fa checkctty is non-zero, the signal is only delivered to processes in the process group that have a controlling terminal. If Fa sigiop->sio_pgid is for a process (> 0), the lock for Fa sigiop->sio_proc is acquired and released. If Fa sigiop->sio_pgid is for a process group (< 0), the process group lock for Fa sigiop->sio_pgrp is acquired and released. The lock sigio_lock is acquired and released.
function handles the actual delivery of the signal Fa sig . postsig ();
is called from ast ();
after the kernel has been notified that a signal should be delivered (via a call to signotify (,);
which causes the flag PS_NEEDSIGCHK to be set). The lock for process that owns curthread must be held before postsig ();
is called, and the current process cannot be 0. The lock for the p_sigacts field of the current process must be held before postsig ();
is called, and may be released and reacquired.
function causes the process that owns Fa td to exit with a return value of signal number Fa sig . If required, the process will dump core. The lock for the process that owns Fa td must be held before sigexit ();
function is called during system initialization to cause every signal with a default property of SA_IGNORE (except SIGCONT to be ignored by Fa p . The process lock for Fa p is acquired and released by siginit (.);
The only process that siginit ();
is ever called for is proc0
function flags that there are unmasked signals pending that ast ();
should handle. The lock for process Fa td->td_proc must be held before signotify ();
is called, and sched_lock is acquired and released.
function sends a signal that is the result of a trap to process Fa td->td_proc . If the process is not being traced and the signal can be delivered immediately, trapsignal ();
will deliver it directly; otherwise, trapsignal ();
will call psignal(9) to cause the signal to be delivered. The sched_lock lock is acquired and released, as is the lock for Fa td->td_proc . The lock for the p_sigacts field of Fa td->td_proc is acquired and released.
function returns either a valid signal number or zero.
returns either a valid signal number or zero.
Закладки на сайте
Проследить за страницей
Created 1996-2021 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру