Function Report

Linux Kernel (v4.4)

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

Function Name:copy_files

Function:static int copy_files(unsigned long clone_flags, struct task_struct *tsk)

Return Type:static int


Type Parameter NameRemarks
unsigned long clone_flags
struct task_struct * tsk

Function description:

1017  error = 0
1022  Open file table structure = current process-> open file information
1023  If !Open file table structure then Go to out
1026  If clone_flags & set if open files shared between processes then
1027  increment atomic variable
1028  Go to out
1031  Open file table structure = Allocate a new files structure and copy contents from the passed in files structure. errorp will be valid only when the returned files_struct is NULL.
1032  If !Open file table structure then Go to out
1035  open file information = Open file table structure
1036  error = 0
1037  out
1038  Returning error
Function NameFunction description
copy_processCreate a new process