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_fs

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

Type:int

Parameter:

TypeParameterName
unsigned longclone_flags
struct task_struct *tsk
1431  fs = fs
1432  If clone_flags & set if fs info shared between processes Then
1434  spin_lock( & lock)
1435  If in_exec Then
1436  spin_unlock( & lock)
1437  Return -EAGAIN
1439  users++
1440  spin_unlock( & lock)
1441  Return 0
1443  Filesystem information: = copy_fs_struct(fs)
1444  If Not Filesystem information: Then Return -ENOMEM
1446  Return 0
Caller
NameDescribe
copy_processCreate a new process