int sig) { struct siginfo info; info.si_signo = sig; //具体的一个信号 info.si_errno...
q->info.si_code = SI_USER; q->info._sifields._kill._pid = current->pid; q->info._sifields._kill._uid = current->uid; } else if ((unsigned long)info == 1) { q->info.si_signo = sig; q->info.si_errno = 0; q->info.si_code = SI_KERNEL; q->info._sifields._kill....
signal.SIGBUS¶ 总线错误 (非法的内存访问)。 可用性: Unix。 signal.SIGCHLD¶ 子进程被停止或终结。 可用性: Unix。 signal.SIGCLD¶ SIGCHLD的别名。 signal.SIGCONT¶ 如果进程当前已停止则继续执行它 可用性: Unix。 signal.SIGFPE¶ 浮点异常。 例如除以零。
q->info.si_signo = sig; q->info.si_errno = 0; q->info.si_code = SI_USER; q->info.si_pid = task_tgid_nr_ns(current, task_active_pid_ns(t)); q->info.si_uid = from_kuid_munged(current_user_ns(), current_uid()); break; case (unsigned long) SEND_SIG_PRIV: q->info....
219 *SIGBUSsi_codes 220 */ 221 #define BUS_ADRALN (__SI_FAULT|1) /* invalid address alignment */ 222 #define BUS_ADRERR (__SI_FAULT|2) /* non-existent physical address */ 223 #define BUS_OBJERR (__SI_FAULT|3) /* object specific hardware error */ ...
Search code, repositories, users, issues, pull requests... Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Ca...
Expand Up @@ -294,7 +294,7 @@ void csky_alignment(struct pt_regs *regs) __func__, opcode, rz, rx, imm, addr); show_regs(regs); bust_spinlocks(0); do_exit(SIGKILL); make_task_dead(SIGKILL); } force_sig_fault(SIGBUS, BUS_ADRALN, (void __user *)addr); Expand Down ...
SIGBUS 7 Invalid address access. SIGFPE 8 Floating-point exceptions. SIGKILL 9 Forcibly stops a process. SIGUSR1 10 User-defined signal 1. SIGSEGV 11 Illegal memory access. SIGUSR2 12 User-defined signal 2. SIGPIPE 13 The pipe is broken. SIGALRM 14 Timer signal. SIGTERM 15 Termi...
b ret_to_user // (3) 用户态中断el0_irq .align 6 el0_irq: kernel_entry 0 el0_irq_naked: enable_dbg #ifdef CONFIG_TRACE_IRQFLAGS bl trace_hardirqs_off #endif ct_user_exit irq_handler #ifdef CONFIG_TRACE_IRQFLAGS bl trace_hardirqs_on ...
info->si_code !=SI_USER) return -EAGAIN; 10. 设置悬挂信号队列中的mask成员的与sig相应的位(以表示该信号在悬挂信号队列中) sigaddset(&signals->signal,sig); 11. 返回0. 尽管该信号没有放到悬挂信号队列中, 但是相应的signals->signal中已经设置了 ...