函数逻辑报告

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

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

返回类型:void

参数:

类型参数名称
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  加自旋锁
21  write_seqcount_begin( & seq)
22  old_root等于root
23  root等于path
24  write_seqcount_end( & seq)
25  自旋锁解锁
26  如果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.
调用者
名称描述
init_mount_tree
mntns_install