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:Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.* It can block.

Proto:void set_fs_pwd(struct fs_struct *fs, const struct path *path)

Type:void

Parameter:

TypeParameterName
struct fs_struct *fs
const struct path *path
38  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.
39  spin_lock( & lock)
40  write_seqcount_begin( & seq)
41  old_pwd = pwd
42  pwd = path
43  write_seqcount_end( & seq)
44  spin_unlock( & lock)
46  If dentry Then path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
Caller
NameDescribe
SYSCALL_DEFINE1
init_mount_tree
mntns_install