函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\fs_struct.c Create Date:2022-07-29 10:43:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Replace the fs->{pwdmnt,pwd} with {mnt,dentry}. Put the old values.* It can block.

函数原型:void set_fs_pwd(struct fs_struct *fs, const struct path *path)

返回类型:void

参数:

类型参数名称
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  加自旋锁
40  write_seqcount_begin( & seq)
41  old_pwd等于pwd
42  pwd等于path
43  write_seqcount_end( & seq)
44  自旋锁解锁
46  如果dentrypath_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.
调用者
名称描述
SYSCALL_DEFINE1
init_mount_tree
mntns_install