函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:do loopback mount.

函数原型:static int do_loopback(struct path *path, const char *old_name, int recurse)

返回类型:int

参数:

类型参数名称
struct path *path
const char *old_name
intrecurse
2278  mnt等于NULL
2281  如果非old_name或非old_name则返回:负EINVAL
2283  err等于kern_path(old_name, llow links at the end | rce terminal automount , & old_path)
2284  如果err则返回:err
2287  err等于负EINVAL
2288  如果mnt_ns_loop(dentry)则转到:out
2291  mp等于lock_mount(path)
2292  如果是错误
2293  err等于错误
2294  转到:out
2297  parent等于real_mount(mnt)
2298  如果非check_mnt(parent)则转到:out2
2301  mnt等于__do_loopback( & old_path, recurse)
2302  如果是错误
2303  err等于错误
2304  转到:out2
2307  err等于graft_tree(mnt, parent, mp)
2308  如果err
2309  lock_mount_hash()
2310  mount_lock must be held* namespace_sem must be held for write
2311  unlock_mount_hash()
2313  out2 :
2314  unlock_mount(mp)
2315  out :
2316  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.
2317  返回:err
调用者
名称描述
do_mountFlags is a 32-bit value that allows up to 31 non-fs dependent flags to* be given to the mount() call (ie: read-only, no-dev, no-suid etc)