Lines Matching refs:sighand
48 return t->sighand->action[sig - 1].sa.sa_handler; in sig_handler()
245 spin_lock_irqsave(&t->sighand->siglock, flags); in flush_signals()
249 spin_unlock_irqrestore(&t->sighand->siglock, flags); in flush_signals()
280 spin_lock_irqsave(&tsk->sighand->siglock, flags); in flush_itimer_signals()
283 spin_unlock_irqrestore(&tsk->sighand->siglock, flags); in flush_itimer_signals()
291 t->sighand->action[i].sa.sa_handler = SIG_IGN; in ignore_signals()
304 struct k_sigaction *ka = &t->sighand->action[0]; in flush_signal_handlers()
316 void __user *handler = tsk->sighand->action[sig-1].sa.sa_handler; in unhandled_signal()
338 spin_lock_irqsave(¤t->sighand->siglock, flags); in block_all_signals()
342 spin_unlock_irqrestore(¤t->sighand->siglock, flags); in block_all_signals()
352 spin_lock_irqsave(¤t->sighand->siglock, flags); in unblock_all_signals()
356 spin_unlock_irqrestore(¤t->sighand->siglock, flags); in unblock_all_signals()
484 spin_unlock(&tsk->sighand->siglock); in dequeue_signal()
486 spin_lock(&tsk->sighand->siglock); in dequeue_signal()
824 assert_spin_locked(&t->sighand->siglock); in send_signal()
956 spin_lock_irqsave(&t->sighand->siglock, flags); in force_sig_info()
957 action = &t->sighand->action[sig-1]; in force_sig_info()
970 spin_unlock_irqrestore(&t->sighand->siglock, flags); in force_sig_info()
1011 struct sighand_struct *sighand; in lock_task_sighand() local
1015 sighand = rcu_dereference(tsk->sighand); in lock_task_sighand()
1016 if (unlikely(sighand == NULL)) in lock_task_sighand()
1019 spin_lock_irqsave(&sighand->siglock, *flags); in lock_task_sighand()
1020 if (likely(sighand == tsk->sighand)) in lock_task_sighand()
1022 spin_unlock_irqrestore(&sighand->siglock, *flags); in lock_task_sighand()
1026 return sighand; in lock_task_sighand()
1133 if (sig && p->sighand) { in kill_pid_info_as_uid()
1135 spin_lock_irqsave(&p->sighand->siglock, flags); in kill_pid_info_as_uid()
1137 spin_unlock_irqrestore(&p->sighand->siglock, flags); in kill_pid_info_as_uid()
1207 spin_lock_irqsave(&p->sighand->siglock, flags); in send_sig_info()
1209 spin_unlock_irqrestore(&p->sighand->siglock, flags); in send_sig_info()
1239 spin_lock_irqsave(&p->sighand->siglock, flags); in force_sigsegv()
1240 p->sighand->action[sig - 1].sa.sa_handler = SIG_DFL; in force_sigsegv()
1241 spin_unlock_irqrestore(&p->sighand->siglock, flags); in force_sigsegv()
1287 spinlock_t *lock = ¤t->sighand->siglock; in sigqueue_free()
1414 psig = tsk->parent->sighand; in do_notify_parent()
1451 struct sighand_struct *sighand; in do_notify_parent_cldstop() local
1488 sighand = parent->sighand; in do_notify_parent_cldstop()
1489 spin_lock_irqsave(&sighand->siglock, flags); in do_notify_parent_cldstop()
1490 if (sighand->action[SIGCHLD-1].sa.sa_handler != SIG_IGN && in do_notify_parent_cldstop()
1491 !(sighand->action[SIGCHLD-1].sa.sa_flags & SA_NOCLDSTOP)) in do_notify_parent_cldstop()
1497 spin_unlock_irqrestore(&sighand->siglock, flags); in do_notify_parent_cldstop()
1555 spin_unlock_irq(¤t->sighand->siglock); in ptrace_stop()
1557 spin_lock_irq(¤t->sighand->siglock); in ptrace_stop()
1574 spin_unlock_irq(¤t->sighand->siglock); in ptrace_stop()
1611 spin_lock_irq(¤t->sighand->siglock); in ptrace_stop()
1635 spin_lock_irq(¤t->sighand->siglock); in ptrace_notify()
1637 spin_unlock_irq(¤t->sighand->siglock); in ptrace_notify()
1712 spin_unlock_irq(¤t->sighand->siglock); in do_signal_stop()
1759 struct sighand_struct *sighand = current->sighand; in get_signal_to_deliver() local
1772 spin_lock_irq(&sighand->siglock); in get_signal_to_deliver()
1782 spin_unlock_irq(&sighand->siglock); in get_signal_to_deliver()
1824 ka = &sighand->action[signr-1]; in get_signal_to_deliver()
1864 spin_unlock_irq(&sighand->siglock); in get_signal_to_deliver()
1871 spin_lock_irq(&sighand->siglock); in get_signal_to_deliver()
1886 spin_unlock_irq(&sighand->siglock); in get_signal_to_deliver()
1913 spin_unlock_irq(&sighand->siglock); in get_signal_to_deliver()
1927 spin_lock_irq(&tsk->sighand->siglock); in exit_signals()
1950 spin_unlock_irq(&tsk->sighand->siglock); in exit_signals()
2003 spin_lock_irq(¤t->sighand->siglock); in sigprocmask()
2022 spin_unlock_irq(¤t->sighand->siglock); in sigprocmask()
2049 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE4()
2051 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE4()
2071 spin_lock_irq(¤t->sighand->siglock); in do_sigpending()
2074 spin_unlock_irq(¤t->sighand->siglock); in do_sigpending()
2190 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE4()
2205 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE4()
2209 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE4()
2216 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE4()
2340 k = &t->sighand->action[sig-1]; in do_sigaction()
2342 spin_lock_irq(¤t->sighand->siglock); in do_sigaction()
2372 spin_unlock_irq(¤t->sighand->siglock); in do_sigaction()
2465 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE3()
2485 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE3()
2547 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE1()
2553 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE1()
2602 spin_lock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE2()
2606 spin_unlock_irq(¤t->sighand->siglock); in SYSCALL_DEFINE2()