Function Report

Linux Kernel (v4.4)

Source File:kernel\pid.c Create Date:2016-01-14 10:36:28
Last Modify:2016-01-11 07:01:32 Copyright©Brick
home page Tree
Annotate the kernelChinese

Function Name:attach_pid

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

Return Type:void


Type Parameter NameRemarks
struct task_struct * task
enum pid_type type

Function description:must be called with the tasklist_lock write-held.

391  *link = & PID/PID hash table linkage.[type]
392  adds the specified element to the specified hlist
Function NameFunction description
copy_processCreate a new process