Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__ptrace_link

Proto:void __ptrace_link(struct task_struct *child, struct task_struct *new_parent, const struct cred *ptracer_cred)

Type:void

Parameter:

TypeParameterName
struct task_struct *child
struct task_struct *new_parent
const struct cred *ptracer_cred
70  BUG_ON(!list_empty - tests whether a list is empty*@head: the list to test.)
71  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
72  Recipient of SIGCHLD, wait4() reports: = new_parent
73  Tracer's credentials at attach: = get_cred - Get a reference on a set of credentials*@cred: The credentials to reference* Get a reference on the specified set of credentials. The caller must* release the reference. If %NULL is passed, it is returned with no action.
Caller
NameDescribe
ptrace_linkptrace a task: make the debugger its new parent and* move it to the ptrace list.* Must be called with the tasklist lock write-held.
ptrace_init_taskptrace_init_task - initialize ptrace state for a new child*@child: new child task*@ptrace: true if child should be ptrace'd by parent's tracer* This is called immediately after adding @child to its parent's children* list