Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:58:11
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:copy_files

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

Type:int

Parameter:

TypeParameterName
unsigned longclone_flags
struct task_struct *tsk
1452  error = 0
1457  oldf = files
1458  If Not oldf Then Go to out
1461  If clone_flags & set if open files shared between processes Then
1462  atomic_inc( & ad mostly part)
1463  Go to out
1466  newf = dup_fd(oldf, & error)
1467  If Not newf Then Go to out
1470  Open file information: = newf
1471  error = 0
1472  out :
1473  Return error
Caller
NameDescribe
copy_processCreate a new process