Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-28 09:16:55
Last Modify:2020-03-17 13:28:47 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:exit_signals

Proto:void exit_signals(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
2812  group_stop = 0
2819  group_threadgroup_change_begin - threadgroup exclusion for cgroups*@tsk: target task* Allows cgroup operations to synchronize against threadgroup changes* using a percpu_rw_semaphore.
2821  If thread_group_empty(tsk) || If true, all threads except ->group_exit_task have pending SIGKILL Then
2822  Per task flags (PF_*), defined further below: |= Getting shut down
2823  group_threadgroup_change_end - threadgroup exclusion for cgroups*@tsk: target task* Counterpart of cgroup_threadcgroup_change_begin().
2824  Return
2827  spin_lock_irq( & siglock)
2832  Per task flags (PF_*), defined further below: |= Getting shut down
2834  group_threadgroup_change_end - threadgroup exclusion for cgroups*@tsk: target task* Counterpart of cgroup_threadcgroup_change_begin().
2836  If Not signal_pending(tsk) Then Go to out
2839  unblocked = blocked
2840  signotset( & unblocked)
2841  It could be that complete_signal() picked us to notify about the* group-wide signal. Other threads should be notified now to take* the shared signals in @which since we will not.
2843  If Value for the false possibility is greater at compile time(siglock protected & JOBCTL_STOP_PENDING) && ask_participate_group_stop - participate in a group stop*@task: task participating in a group stop*@task has %JOBCTL_STOP_PENDING set and is participating in a group stop.* Group stop states are cleared and the group stop count is consumed if Then group_stop = child has stopped
2846  out :
2847  spin_unlock_irq( & siglock)
2853  If Value for the false possibility is greater at compile time(group_stop) Then
2854  read_lock( & tasklist_lock)
2855  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
2856  read_unlock( & tasklist_lock)