函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Detach all tasks we were using ptrace on. Called with tasklist held* for writing.

函数原型:void exit_ptrace(struct task_struct *tracer, struct list_head *dead)

返回类型:void

参数:

类型参数名称
struct task_struct *tracer
struct list_head *dead
585  如果此条件成立可能性小(为编译器优化)(ptrace & PT_EXITKILL)则信号发送入口
588  如果Called with tasklist_lock held for writing添加链表项
调用者
名称描述
forget_original_parentThis does two things:* A. Make init inherit all the child processes* B. Check to see if any process groups have become orphaned* as a result of our exiting, and if they have any stopped* jobs, send them a SIGHUP and then a SIGCONT. (POSIX 3.2.2.2)