Lines Matching refs:signr
641 int signr; in dequeue_signal() local
647 signr = __dequeue_signal(&tsk->pending, mask, info, &resched_timer); in dequeue_signal()
648 if (!signr) { in dequeue_signal()
650 signr = __dequeue_signal(&tsk->signal->shared_pending, in dequeue_signal()
666 if (unlikely(signr == SIGALRM)) { in dequeue_signal()
680 if (!signr) in dequeue_signal()
683 if (unlikely(sig_kernel_stop(signr))) { in dequeue_signal()
714 return signr; in dequeue_signal()
1269 static void print_fatal_signal(int signr) in print_fatal_signal() argument
1272 pr_info("potentially unexpected fatal signal %d.\n", signr); in print_fatal_signal()
2356 static int ptrace_do_notify(int signr, int exit_code, int why, unsigned long message) in ptrace_do_notify() argument
2361 info.si_signo = signr; in ptrace_do_notify()
2372 int signr; in ptrace_notify() local
2379 signr = ptrace_do_notify(SIGTRAP, exit_code, CLD_TRAPPED, message); in ptrace_notify()
2381 return signr; in ptrace_notify()
2406 static bool do_signal_stop(int signr) in do_signal_stop() argument
2416 WARN_ON_ONCE(signr & ~JOBCTL_STOP_SIGMASK); in do_signal_stop()
2442 sig->group_exit_code = signr; in do_signal_stop()
2446 if (task_set_jobctl_pending(current, signr | gstop)) in do_signal_stop()
2457 task_set_jobctl_pending(t, signr | gstop)) { in do_signal_stop()
2529 int signr = current->jobctl & JOBCTL_STOP_SIGMASK; in do_jobctl_trap() local
2534 signr = SIGTRAP; in do_jobctl_trap()
2535 WARN_ON_ONCE(!signr); in do_jobctl_trap()
2536 ptrace_do_notify(signr, signr | (PTRACE_EVENT_STOP << 8), in do_jobctl_trap()
2539 WARN_ON_ONCE(!signr); in do_jobctl_trap()
2540 ptrace_stop(signr, CLD_STOPPED, 0, NULL); in do_jobctl_trap()
2581 static int ptrace_signal(int signr, kernel_siginfo_t *info, enum pid_type type) in ptrace_signal() argument
2593 signr = ptrace_stop(signr, CLD_TRAPPED, 0, info); in ptrace_signal()
2596 if (signr == 0) in ptrace_signal()
2597 return signr; in ptrace_signal()
2605 if (signr != info->si_signo) { in ptrace_signal()
2607 info->si_signo = signr; in ptrace_signal()
2618 if (sigismember(¤t->blocked, signr) || in ptrace_signal()
2620 send_signal_locked(signr, info, current, type); in ptrace_signal()
2621 signr = 0; in ptrace_signal()
2624 return signr; in ptrace_signal()
2653 int signr; in get_signal() local
2718 ksig->info.si_signo = signr = SIGKILL; in get_signal()
2758 signr = dequeue_synchronous_signal(&ksig->info); in get_signal()
2759 if (!signr) in get_signal()
2760 signr = dequeue_signal(current, ¤t->blocked, in get_signal()
2763 if (!signr) in get_signal()
2766 if (unlikely(current->ptrace) && (signr != SIGKILL) && in get_signal()
2767 !(sighand->action[signr -1].sa.sa_flags & SA_IMMUTABLE)) { in get_signal()
2768 signr = ptrace_signal(signr, &ksig->info, type); in get_signal()
2769 if (!signr) in get_signal()
2773 ka = &sighand->action[signr-1]; in get_signal()
2776 trace_signal_deliver(signr, &ksig->info, ka); in get_signal()
2793 if (sig_kernel_ignore(signr)) /* Default is nothing. */ in get_signal()
2807 !sig_kernel_only(signr)) in get_signal()
2810 if (sig_kernel_stop(signr)) { in get_signal()
2821 if (signr != SIGSTOP) { in get_signal()
2854 if (sig_kernel_coredump(signr)) { in get_signal()
2885 ksig->sig = signr; in get_signal()