Function report |
Source Code:kernel\signal.c |
Create Date:2022-07-28 09:16:34 |
| Last Modify:2020-03-17 13:28:47 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_notify_parent_cldstop - notify parent of stopped/continued state change*@tsk: task reporting the state change*@for_ptracer: the notification is for ptracer*@why: CLD_{CONTINUED|STOPPED|TRAPPED} to report
Proto:static void do_notify_parent_cldstop(struct task_struct *tsk, bool for_ptracer, int why)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct task_struct * | tsk | |
| bool | for_ptracer | |
| int | why |
| 2021 | If for_ptracer Then |
| 2023 | Else |
| 2024 | tsk = group_leader |
| 2025 | parent = Real parent process: |
| 2028 | clear_siginfo( & info) |
| 2030 | si_errno = 0 |
| 2035 | si_pid = task_pid_nr_ns(tsk, task_active_pid_ns(parent)) |
| 2036 | si_uid = from_kuid_munged(task_cred_xxx(parent, user_ns), task_uid(tsk)) |
| 2039 | task_cputime(tsk, & utime, & stime) |
| 2040 | si_utime = nsec_to_clock_t(utime) |
| 2041 | si_stime = nsec_to_clock_t(stime) |
| 2045 | Case why == stopped child has continued |
| 2048 | Case why == child has stopped |
| 2049 | si_status = group_exit_code & 0x7f |
| 2050 | Break |
| 2051 | Case why == raced child has trapped |
| 2054 | Default |
| 2055 | BUG() |
| 2059 | spin_lock_irqsave( & siglock, flags) |
| 2066 | __wake_up_parent(tsk, parent) |
| 2067 | spin_unlock_irqrestore( & siglock, flags) |
| Name | Describe |
|---|---|
| ptrace_stop | This must be called with current->sighand->siglock held.* This should be the path for all ptrace stops.* We always set current->last_siginfo while stopped here.* That makes it a way to test a stopped process for |
| do_signal_stop | do_signal_stop - handle group stop for SIGSTOP and other stop signals*@signr: signr causing group stop if initiating* If %JOBCTL_STOP_PENDING is not set yet, initiate group stop with @signr* and participate in it |
| get_signal | |
| exit_signals |
| 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 |