Lines Matching refs:pending

126  * Re-calculate pending state from the set of locally pending
127 * signals, globally pending signals, and blocked signals.
160 PENDING(&t->pending, &t->blocked) ||
200 int next_signal(struct sigpending *pending, sigset_t *mask)
205 s = pending->signal.sig;
261 * task_set_jobctl_pending - set jobctl pending bits
263 * @mask: pending bits to set
315 * task_clear_jobctl_pending - clear jobctl pending bits
317 * @mask: pending bits to clear
323 * If clearing of @mask leaves no stop or trap pending, this function calls
416 * NOTE! A pending signal will hold on to the user refcount,
467 * Flush all pending signals for this kthread.
475 flush_sigqueue(&t->pending);
482 static void __flush_itimer_signals(struct sigpending *pending)
487 signal = pending->signal;
490 list_for_each_entry_safe(q, n, &pending->list, list) {
502 sigorsets(&pending->signal, &signal, &retain);
511 __flush_itimer_signals(&tsk->pending);
610 static int __dequeue_signal(struct sigpending *pending, sigset_t *mask,
613 int sig = next_signal(pending, mask);
616 collect_signal(sig, pending, info, resched_timer);
636 signr = __dequeue_signal(&tsk->pending, mask, info, &resched_timer);
675 * caller might release the siglock and then the pending
677 * pending bitmasks, but must still be cleared by a SIGCONT
710 struct sigpending *pending = &tsk->pending;
716 if (!((pending->signal.sig[0] & ~tsk->blocked.sig[0]) & SYNCHRONOUS_MASK))
722 list_for_each_entry(q, &pending->list, list) {
735 list_for_each_entry_continue(q, &pending->list, list) {
740 sigdelset(&pending->signal, sync->info.si_signo);
778 * Remove signals in mask from the pending set and queue.
923 flush_sigqueue_mask(&flush, &t->pending);
932 flush_sigqueue_mask(&flush, &t->pending);
974 * have pending signals. Such threads will dequeue from the shared queue
1047 * thread has the fatal signal pending.
1054 sigaddset(&t->pending.signal, SIGKILL);
1062 * The signal is already in the shared-pending queue.
1077 struct sigpending *pending;
1088 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending;
1095 if (legacy_queue(pending, sig))
1122 list_add_tail(&q->list, &pending->list);
1169 sigaddset(&pending->signal, sig);
1353 /* This can happen if the signal was already pending and blocked */
1385 sigaddset(&t->pending.signal, SIGKILL);
1971 struct sigpending *pending;
1985 * into t->pending).
2019 pending = (type != PIDTYPE_PID) ? &t->signal->shared_pending : &t->pending;
2020 list_add_tail(&q->list, &pending->list);
2021 sigaddset(&pending->signal, sig);
2300 /* any trap clears pending STOP trap, STOP trap clears NOTIFY */
2584 * If there are other trap bits pending except JOBCTL_TRAP_FREEZE,
2595 * Now we're sure that there is no pending fatal signal and no
2596 * pending traps. Clear TIF_SIGPENDING to not get out of schedule()
2597 * immediately (if there is a non-fatal signal pending), and
2745 sigdelset(&current->pending.signal, SIGKILL);
2783 * need to be delivered before any other pending signals
3191 * @nset: stores pending signals
3253 sigorsets(set, &current->pending.signal,
3262 * sys_rt_sigpending - examine a pending signal that has been raised
3264 * @uset: stores pending signals
4151 flush_sigqueue_mask(&mask, &current->pending);
4207 * pending shall cause the pending signal to be discarded,
4211 * pending and whose default action is to ignore the signal
4212 * (for example, SIGCHLD), shall cause the pending signal to
4220 flush_sigqueue_mask(&mask, &t->pending);
4396 * sys_sigpending - examine pending signals
4397 * @uset: where mask of pending signal is returned