Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:copy_fs_struct

Proto:struct fs_struct *copy_fs_struct(struct fs_struct *old)

Type:struct fs_struct

Parameter:

TypeParameterName
struct fs_struct *old
114  fs = kmem_cache_alloc(SLAB cache for fs_struct structures (tsk->fs) , GFP_KERNEL)
116  If fs Then
117  users = 1
118  in_exec = 0
119  Process spin lock initialization( & lock)
120  seqcount_init( & seq)
121  umask = umask
123  spin_lock( & lock)
124  root = root
125  path_get - get a reference to a path*@path: path to get the reference to* Given a path increment the reference count to the dentry and the vfsmount.
126  pwd = pwd
127  path_get - get a reference to a path*@path: path to get the reference to* Given a path increment the reference count to the dentry and the vfsmount.
128  spin_unlock( & lock)
130  Return fs
Caller
NameDescribe
unshare_fsUnshare the filesystem structure if it is being shared
unshare_fs_struct