函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\signal.c Create Date:2022-07-27 10:16:52
Last Modify:2020-03-17 13:28:47 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:exit_signals

函数原型:void exit_signals(struct task_struct *tsk)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
2812  group_stop等于0
2819  开始摘除线程组
2821  如果thread_group_empty(tsk)或If true, all threads except ->group_exit_task have pending SIGKILL
2822  任务标志或等于Getting shut down
2823  摘除线程组完成
2824  返回
2827  spin_lock_irq( & siglock)
2832  任务标志或等于Getting shut down
2834  摘除线程组完成
2836  如果非signal_pending(tsk)则转到:out
2839  unblocked等于需要阻塞的信号
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  如果此条件成立可能性小(为编译器优化)( JOBCTL_*, 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 ifgroup_stop等于child has stopped
2846  out :
2847  spin_unlock_irq( & siglock)
2853  如果此条件成立可能性小(为编译器优化)(group_stop)则
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)
调用者
名称描述
do_exit