Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\signal.c Create Date:2022-07-28 07:30:50
Last Modify:2022-05-22 06:23:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Note that 'init' is a special process: it doesn't get signals it doesn't* want to handle. Thus you cannot kill init even with a SIGKILL even by* mistake.

Proto:void do_signal(struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
struct pt_regs *regs
815  If get_signal( & ksig) Then
817  handle_signal( & ksig, regs)
818  Return
822  If Only the low 32 bits of orig_ax are meaningful, so we return int.* This importantly ignores the high bits on 64-bit, so comparisons* sign-extend the low 32 bits. >= 0 Then
825  Case syscall_get_error(current process, regs) == -start if no handler..
826  Case syscall_get_error(current process, regs) == -These should never be seen by user programs. To return one of ERESTART** codes, signal_pending() MUST be set. Note that ptrace can observe these* at syscall exit tracing, but they will never be left for the debugged user* process to see.
828  ax = orig_ax
829  ip -= 2
830  Break
834  ip -= 2
835  Break
843  restore_saved_sigmask()