函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Move a mount from one place to another. In combination with* fsopen()/fsmount() this is used to install a new mount and in combination* with open_tree(OPEN_TREE_CLONE [| AT_RECURSIVE]) it can be used to copy* a mount subtree.

函数原型:SYSCALL_DEFINE5(move_mount, int, from_dfd, const char __user *, from_pathname, int, to_dfd, const char __user *, to_pathname, unsigned int, flags)

返回类型:

参数:

3517  ret等于0
3519  如果非Is the caller allowed to modify his namespace?则返回:负EPERM
3522  如果flags按位与MOVE_MOUNT__MASK的反则返回:负EINVAL
3529  lflags等于0
3530  如果flags按位与Follow symlinks on from path lflags或等于llow links at the end
3531  如果flags按位与Follow automounts on from path lflags或等于rce terminal automount
3532  如果flags按位与Empty from path permitted lflags或等于accept empty path [user_... only]
3534  ret等于user_path_at(from_dfd, from_pathname, lflags, & from_path)
3535  如果ret小于0则返回:ret
3538  lflags等于0
3539  如果flags按位与Follow symlinks on to path lflags或等于llow links at the end
3540  如果flags按位与Follow automounts on to path lflags或等于rce terminal automount
3541  如果flags按位与Empty to path permitted lflags或等于accept empty path [user_... only]
3543  ret等于user_path_at(to_dfd, to_pathname, lflags, & to_path)
3544  如果ret小于0则转到:out_from
3547  ret等于security_move_mount( & from_path, & to_path)
3548  如果ret小于0则转到:out_to
3551  ret等于do_move_mount( & from_path, & to_path)
3553  out_to :
3554  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.
3555  out_from :
3556  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.
3557  返回:ret