Lines Matching refs:si_code
583 if (unlikely((first->flags & SIGQUEUE_PREALLOC) && (info->si_code == SI_TIMER))) in collect_signal()
596 info->si_code = SI_USER; in collect_signal()
684 if ((q->info.si_code > SI_USER) && in dequeue_synchronous_signal()
741 if (likely(!(q->flags & SIGQUEUE_PREALLOC) || q->info.si_code != SI_TIMER)) in sigqueue_free_ignored()
1082 override_rlimit = (is_si_special(info) || info->si_code >= 0); in __send_signal_locked()
1095 q->info.si_code = SI_USER; in __send_signal_locked()
1108 q->info.si_code = SI_KERNEL; in __send_signal_locked()
1117 sig >= SIGRTMIN && info->si_code != SI_USER) { in __send_signal_locked()
1161 switch (siginfo_layout(info->si_signo, info->si_code)) { in has_si_pid_and_uid()
1207 force = (info->si_code == SI_KERNEL); in send_signal_locked()
1534 info.si_code = SI_ASYNCIO; in kill_pid_usb_asyncio()
1641 info.si_code = SI_KERNEL; in force_sig()
1655 info.si_code = SI_KERNEL; in force_fatal_sig()
1668 info.si_code = SI_KERNEL; in force_exit_sig()
1696 info.si_code = code; in force_sig_fault_to_task()
1713 info.si_code = code; in send_sig_fault()
1726 info.si_code = code; in force_sig_mceerr()
1740 info.si_code = code; in send_sig_mceerr()
1754 info.si_code = SEGV_BNDERR; in force_sig_bnderr()
1769 info.si_code = SEGV_PKUERR; in force_sig_pkuerr()
1783 info.si_code = TRAP_PERF; in send_sig_perf()
1816 info.si_code = SYS_SECCOMP; in force_sig_seccomp()
1835 info.si_code = TRAP_HWBKPT; in force_sig_ptrace_errno_trap()
1850 info.si_code = code; in force_sig_fault_trapno()
1867 info.si_code = code; in send_sig_fault_trapno()
1910 if (likely(q->info.si_code != SI_TIMER)) { in __flush_itimer_signals()
2205 info.si_code = CLD_DUMPED; in do_notify_parent()
2207 info.si_code = CLD_KILLED; in do_notify_parent()
2209 info.si_code = CLD_EXITED; in do_notify_parent()
2293 info.si_code = why; in do_notify_parent_cldstop()
2401 if (info && info->si_code >> 8 == PTRACE_EVENT_STOP) in ptrace_stop()
2489 info.si_code = exit_code; in ptrace_do_notify()
2742 info->si_code = SI_USER; in ptrace_signal()
2762 switch (siginfo_layout(ksig->sig, ksig->info.si_code)) { in hide_si_addr_tag_bits()
2770 ksig->info.si_addr, ksig->sig, ksig->info.si_code); in hide_si_addr_tag_bits()
3419 static bool known_siginfo_layout(unsigned sig, int si_code) in known_siginfo_layout() argument
3421 if (si_code == SI_KERNEL) in known_siginfo_layout()
3423 else if ((si_code > SI_USER)) { in known_siginfo_layout()
3425 if (si_code <= sig_sicodes[sig].limit) in known_siginfo_layout()
3428 else if (si_code <= NSIGPOLL) in known_siginfo_layout()
3431 else if (si_code >= SI_DETHREAD) in known_siginfo_layout()
3433 else if (si_code == SI_ASYNCNL) in known_siginfo_layout()
3438 enum siginfo_layout siginfo_layout(unsigned sig, int si_code) in siginfo_layout() argument
3441 if ((si_code > SI_USER) && (si_code < SI_KERNEL)) { in siginfo_layout()
3443 (si_code <= sig_sicodes[sig].limit)) { in siginfo_layout()
3447 (si_code >= BUS_MCEERR_AR) && (si_code <= BUS_MCEERR_AO)) in siginfo_layout()
3449 else if ((sig == SIGSEGV) && (si_code == SEGV_BNDERR)) in siginfo_layout()
3452 else if ((sig == SIGSEGV) && (si_code == SEGV_PKUERR)) in siginfo_layout()
3455 else if ((sig == SIGTRAP) && (si_code == TRAP_PERF)) in siginfo_layout()
3458 (sig == SIGILL) && (si_code == ILL_ILLTRP)) in siginfo_layout()
3462 ((sig == SIGTRAP) && (si_code == TRAP_UNK)))) in siginfo_layout()
3465 else if (si_code <= NSIGPOLL) in siginfo_layout()
3468 if (si_code == SI_TIMER) in siginfo_layout()
3470 else if (si_code == SI_SIGIO) in siginfo_layout()
3472 else if (si_code < 0) in siginfo_layout()
3496 if (unlikely(!known_siginfo_layout(info->si_signo, info->si_code))) { in post_copy_siginfo_from_user()
3550 to->si_code = from->si_code; in copy_siginfo_to_external32()
3551 switch(siginfo_layout(from->si_signo, from->si_code)) { in copy_siginfo_to_external32()
3628 to->si_code = from->si_code; in post_copy_siginfo_from_user32()
3629 switch(siginfo_layout(from->si_signo, from->si_code)) { in post_copy_siginfo_from_user32()
3922 info->si_code = (type == PIDTYPE_PID) ? SI_TKILL : SI_USER; in prepare_kill_siginfo()
4064 (kinfo.si_code >= 0 || kinfo.si_code == SI_TKILL)) in SYSCALL_DEFINE4()
4155 if ((info->si_code >= 0 || info->si_code == SI_TKILL) && in do_rt_sigqueueinfo()
4202 if ((info->si_code >= 0 || info->si_code == SI_TKILL) && in do_rt_tgsigqueueinfo()