Lines Matching refs:si_code
494 if (likely(q->info.si_code != SI_TIMER)) { in __flush_itimer_signals()
588 (info->si_code == SI_TIMER) && in collect_signal()
601 info->si_code = SI_USER; in collect_signal()
718 if ((q->info.si_code > SI_USER) && in dequeue_synchronous_signal()
1106 override_rlimit = (is_si_special(info) || info->si_code >= 0); in __send_signal()
1118 q->info.si_code = SI_USER; in __send_signal()
1131 q->info.si_code = SI_KERNEL; in __send_signal()
1140 sig >= SIGRTMIN && info->si_code != SI_USER) { in __send_signal()
1184 switch (siginfo_layout(info->si_signo, info->si_code)) { in has_si_pid_and_uid()
1228 force = (info->si_code == SI_KERNEL); in send_signal()
1511 info.si_code = SI_ASYNCIO; in kill_pid_usb_asyncio()
1625 info.si_code = SI_KERNEL; in force_sig()
1661 info.si_code = code; in force_sig_fault_to_task()
1693 info.si_code = code; in send_sig_fault()
1714 info.si_code = code; in force_sig_mceerr()
1728 info.si_code = code; in send_sig_mceerr()
1742 info.si_code = SEGV_BNDERR; in force_sig_bnderr()
1757 info.si_code = SEGV_PKUERR; in force_sig_pkuerr()
1774 info.si_code = TRAP_HWBKPT; in force_sig_ptrace_errno_trap()
1868 BUG_ON(q->info.si_code != SI_TIMER); in send_sigqueue()
1959 info.si_code = CLD_DUMPED; in do_notify_parent()
1961 info.si_code = CLD_KILLED; in do_notify_parent()
1963 info.si_code = CLD_EXITED; in do_notify_parent()
2043 info.si_code = why; in do_notify_parent_cldstop()
2177 if (info && info->si_code >> 8 == PTRACE_EVENT_STOP) in ptrace_stop()
2258 info.si_code = exit_code; in ptrace_do_notify()
2504 info->si_code = SI_USER; in ptrace_signal()
3128 static bool known_siginfo_layout(unsigned sig, int si_code) in known_siginfo_layout() argument
3130 if (si_code == SI_KERNEL) in known_siginfo_layout()
3132 else if ((si_code > SI_USER)) { in known_siginfo_layout()
3134 if (si_code <= sig_sicodes[sig].limit) in known_siginfo_layout()
3137 else if (si_code <= NSIGPOLL) in known_siginfo_layout()
3140 else if (si_code >= SI_DETHREAD) in known_siginfo_layout()
3142 else if (si_code == SI_ASYNCNL) in known_siginfo_layout()
3147 enum siginfo_layout siginfo_layout(unsigned sig, int si_code) in siginfo_layout() argument
3150 if ((si_code > SI_USER) && (si_code < SI_KERNEL)) { in siginfo_layout()
3152 (si_code <= sig_sicodes[sig].limit)) { in siginfo_layout()
3156 (si_code >= BUS_MCEERR_AR) && (si_code <= BUS_MCEERR_AO)) in siginfo_layout()
3158 else if ((sig == SIGSEGV) && (si_code == SEGV_BNDERR)) in siginfo_layout()
3161 else if ((sig == SIGSEGV) && (si_code == SEGV_PKUERR)) in siginfo_layout()
3165 else if (si_code <= NSIGPOLL) in siginfo_layout()
3168 if (si_code == SI_TIMER) in siginfo_layout()
3170 else if (si_code == SI_SIGIO) in siginfo_layout()
3172 else if (si_code < 0) in siginfo_layout()
3196 if (unlikely(!known_siginfo_layout(info->si_signo, info->si_code))) { in post_copy_siginfo_from_user()
3248 new.si_code = from->si_code; in __copy_siginfo_to_user32()
3249 switch(siginfo_layout(from->si_signo, from->si_code)) { in __copy_siginfo_to_user32()
3330 to->si_code = from->si_code; in post_copy_siginfo_from_user32()
3331 switch(siginfo_layout(from->si_signo, from->si_code)) { in post_copy_siginfo_from_user32()
3624 info->si_code = SI_USER; in prepare_kill_siginfo()
3747 (kinfo.si_code >= 0 || kinfo.si_code == SI_TKILL)) in SYSCALL_DEFINE4()
3797 info.si_code = SI_TKILL; in do_tkill()
3844 if ((info->si_code >= 0 || info->si_code == SI_TKILL) && in do_rt_sigqueueinfo()
3891 if ((info->si_code >= 0 || info->si_code == SI_TKILL) && in do_rt_tgsigqueueinfo()