Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:attach_pid() must be called with the tasklist_lock write-held.

Proto:void attach_pid(struct task_struct *task, enum pid_type type)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
enum pid_typetype
327  pid = task_pid_ptr(task, type)
328  adds the specified element to the specified hlist
Caller
NameDescribe
copy_processCreate a new process
change_pid