Lines Matching refs:si_code
500 if (likely(q->info.si_code != SI_TIMER)) { in __flush_itimer_signals()
594 (info->si_code == SI_TIMER) && in collect_signal()
607 info->si_code = SI_USER; in collect_signal()
724 if ((q->info.si_code > SI_USER) && in dequeue_synchronous_signal()
1112 override_rlimit = (is_si_special(info) || info->si_code >= 0); in __send_signal()
1124 q->info.si_code = SI_USER; in __send_signal()
1137 q->info.si_code = SI_KERNEL; in __send_signal()
1146 sig >= SIGRTMIN && info->si_code != SI_USER) { in __send_signal()
1190 switch (siginfo_layout(info->si_signo, info->si_code)) { in has_si_pid_and_uid()
1234 force = (info->si_code == SI_KERNEL); in send_signal()
1520 info.si_code = SI_ASYNCIO; in kill_pid_usb_asyncio()
1627 info.si_code = SI_KERNEL; in force_sig()
1663 info.si_code = code; in force_sig_fault_to_task()
1695 info.si_code = code; in send_sig_fault()
1716 info.si_code = code; in force_sig_mceerr()
1730 info.si_code = code; in send_sig_mceerr()
1744 info.si_code = SEGV_BNDERR; in force_sig_bnderr()
1759 info.si_code = SEGV_PKUERR; in force_sig_pkuerr()
1776 info.si_code = TRAP_HWBKPT; in force_sig_ptrace_errno_trap()
1870 BUG_ON(q->info.si_code != SI_TIMER); in send_sigqueue()
1961 info.si_code = CLD_DUMPED; in do_notify_parent()
1963 info.si_code = CLD_KILLED; in do_notify_parent()
1965 info.si_code = CLD_EXITED; in do_notify_parent()
2049 info.si_code = why; in do_notify_parent_cldstop()
2183 if (info && info->si_code >> 8 == PTRACE_EVENT_STOP) in ptrace_stop()
2264 info.si_code = exit_code; in ptrace_do_notify()
2510 info->si_code = SI_USER; in ptrace_signal()
3152 static bool known_siginfo_layout(unsigned sig, int si_code) in known_siginfo_layout() argument
3154 if (si_code == SI_KERNEL) in known_siginfo_layout()
3156 else if ((si_code > SI_USER)) { in known_siginfo_layout()
3158 if (si_code <= sig_sicodes[sig].limit) in known_siginfo_layout()
3161 else if (si_code <= NSIGPOLL) in known_siginfo_layout()
3164 else if (si_code >= SI_DETHREAD) in known_siginfo_layout()
3166 else if (si_code == SI_ASYNCNL) in known_siginfo_layout()
3171 enum siginfo_layout siginfo_layout(unsigned sig, int si_code) in siginfo_layout() argument
3174 if ((si_code > SI_USER) && (si_code < SI_KERNEL)) { in siginfo_layout()
3176 (si_code <= sig_sicodes[sig].limit)) { in siginfo_layout()
3180 (si_code >= BUS_MCEERR_AR) && (si_code <= BUS_MCEERR_AO)) in siginfo_layout()
3182 else if ((sig == SIGSEGV) && (si_code == SEGV_BNDERR)) in siginfo_layout()
3185 else if ((sig == SIGSEGV) && (si_code == SEGV_PKUERR)) in siginfo_layout()
3189 else if (si_code <= NSIGPOLL) in siginfo_layout()
3192 if (si_code == SI_TIMER) in siginfo_layout()
3194 else if (si_code == SI_SIGIO) in siginfo_layout()
3196 else if (si_code < 0) in siginfo_layout()
3220 if (unlikely(!known_siginfo_layout(info->si_signo, info->si_code))) { in post_copy_siginfo_from_user()
3274 to->si_code = from->si_code; in copy_siginfo_to_external32()
3275 switch(siginfo_layout(from->si_signo, from->si_code)) { in copy_siginfo_to_external32()
3354 to->si_code = from->si_code; in post_copy_siginfo_from_user32()
3355 switch(siginfo_layout(from->si_signo, from->si_code)) { in post_copy_siginfo_from_user32()
3648 info->si_code = SI_USER; in prepare_kill_siginfo()
3771 (kinfo.si_code >= 0 || kinfo.si_code == SI_TKILL)) in SYSCALL_DEFINE4()
3821 info.si_code = SI_TKILL; in do_tkill()
3868 if ((info->si_code >= 0 || info->si_code == SI_TKILL) && in do_rt_sigqueueinfo()
3915 if ((info->si_code >= 0 || info->si_code == SI_TKILL) && in do_rt_tgsigqueueinfo()