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->{rootmnt,root} with {mnt,dentry}. Put the old values.* It can block.

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

Type:void

Parameter:

TypeParameterName
struct fs_struct *fs
const struct path *path
19  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.
20  spin_lock( & lock)
21  write_seqcount_begin( & seq)
22  old_root = root
23  root = path
24  write_seqcount_end( & seq)
25  spin_unlock( & lock)
26  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
init_mount_tree
mntns_install