Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ptrace_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

Proto:static inline void ptrace_init_task(struct task_struct *child, bool ptrace)

Type:void

Parameter:

TypeParameterName
struct task_struct *child
boolptrace
210  Initialization list head
211  Initialization list head
212  jobctl = 0
213  ptrace = 0
214  parent = real_parent
216  If Value for the false possibility is greater at compile time(ptrace) && ptrace Then
217  ptrace = ptrace
218  __ptrace_link(child, parent, ptracer_cred)
220  If ptrace & SEIZE used, enable new behavior Then ask_set_jobctl_pending - set jobctl pending bits*@task: target task*@mask: pending bits to set* Clear @mask from @task->jobctl. @mask must be subset of* %JOBCTL_PENDING_MASK | %JOBCTL_STOP_CONSUME | %JOBCTL_STOP_SIGMASK |* %JOBCTL_TRAPPING
222  Else We don't use for these because there is no need tobe atomic.
225  Else ptracer_cred = NULL
Caller
NameDescribe
copy_processCreate a new process