Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\ptrace.c Create Date:2022-07-28 09:13:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Called with tasklist_lock held for writing

Proto:static bool __ptrace_detach(struct task_struct *tracer, struct task_struct *p)

Type:bool

Parameter:

TypeParameterName
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  If exit state != EXIT_ZOMBIE Then Return false
533  dead = Not thread_group_leader(p)
535  If Not dead && thread_group_empty(p) Then
536  If Not same_thread_group( Real parent process: , tracer) Then 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  If dead Then exit state = Used in tsk->exit_state:
546  Return dead
Caller
NameDescribe
ptrace_detach
exit_ptraceDetach all tasks we were using ptrace on. Called with tasklist held* for writing.