函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called with tasklist_lock held for writing

函数原型:static bool __ptrace_detach(struct task_struct *tracer, struct task_struct *p)

返回类型:bool

参数:

类型参数名称
struct task_struct *tracer
struct task_struct *p
528  __ptrace_unlink - unlink ptracee and restore its execution state*@child: ptracee to be unlinked* Remove @child from the ptrace list, move it back to the original parent,* and restore the execution state so that it conforms to the group stop* state
530  如果进程退出时状态不等于EXIT_ZOMBIE则返回:false
533  dead等于非thread_group_leader(p)
535  如果非deadthread_group_empty(p)则
536  如果非same_thread_group(真正的父进程, tracer)则dead等于Let a parent know about the death of a child.* For a stopped/continued status change, use do_notify_parent_cldstop instead.* Returns true if our parent ignored us and so we've switched to* self-reaping.
540  dead = true
544  如果dead进程退出时状态等于Used in tsk->exit_state:
546  返回:dead
调用者
名称描述
ptrace_detach
exit_ptraceDetach all tasks we were using ptrace on. Called with tasklist held* for writing.