Function report |
Source Code:kernel\signal.c |
Create Date:2022-07-28 09:15:42 |
| Last Modify:2020-03-17 13:28:47 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:send_signal
Proto:static int send_signal(int sig, struct kernel_siginfo *info, struct task_struct *t, enum pid_type type)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | sig | |
| struct kernel_siginfo * | info | |
| struct task_struct * | t | |
| enum pid_type | type |
| 1207 | bool force = false |
| 1211 | force = Not task_pid_nr_ns(current process, task_active_pid_ns(t)) |
| 1212 | Else if info == SEND_SIG_PRIV Then |
| 1214 | force = true |
| 1215 | Else if has_si_pid_and_uid(info) Then |
| 1220 | t_user_ns = task_cred_xxx(t, user_ns) |
| 1221 | If current_user_ns() != t_user_ns Then |
| 1222 | uid = make_kuid(current_user_ns(), si_uid) |
| 1223 | si_uid = from_kuid_munged(t_user_ns, uid) |
| 1228 | force = si_code == sent by the kernel from somewhere |
| 1231 | If Not task_pid_nr_ns(current process, task_active_pid_ns(t)) Then |
| Name | Describe |
|---|---|
| __group_send_sig_info | |
| do_send_sig_info | |
| force_sig_info_to_task | Force a signal that the process can't ignore: if necessary* we unblock the signal and change any SIG_IGN to SIG_DFL.* Note: If we unblock the signal, we always reset it to SIG_DFL,* since we do not want to have a signal handler that was blocked |
| ptrace_signal | |
| kdb_send_sig | kdb_send_sig - Allows kdb to send signals without exposing* signal internals. This function checks if the required locks are* available before calling the main signal code, to avoid kdb* deadlocks. |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |