函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:real_mount

函数原型:static inline struct mount *real_mount(struct vfsmount *mnt)

返回类型:struct mount

参数:

类型参数名称
struct vfsmount *mnt
81  返回:container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(mnt, structmount, mnt)
调用者
名称描述
follow_upllow_up - Find the mountpoint of path's vfsmount* Given a path, find the mountpoint of its source file system
follow_dotdot_rcu
__mnt_want_write__mnt_want_write - get write access to a mount without freeze protection*@m: the mount on which to take a write* This tells the low-level filesystem that a write is about to be performed to* it, and makes sure that writes are allowed (mnt it read-write)
mnt_clone_writemnt_clone_write - get write access to a mount*@mnt: the mount on which to take a write* This is effectively like mnt_want_write, except* it must only be used to take an extra write reference* on a mountpoint that we already know has a write reference
__mnt_drop_write__mnt_drop_write - give up write access to a mount*@mnt: the mount on which to give up write access* Tells the low-level filesystem that we are done* performing writes to it. Must be matched with* __mnt_want_write() call above.
__legitimize_mntall under rcu_read_lock
mntput
mntget
mnt_clone_internal
may_umount_treemay_umount_tree - check if a mount tree is busy*@mnt: root of mount tree* This is called to check if a tree of mounts has any* open files, pwds, chroots or sub mounts that are* busy.
may_umountmay_umount - check if a mount point is busy*@mnt: root of mount* This is called to check if a mount point has any* open files, pwds, chroots or sub mounts. If the* mount has sub mounts this will return busy* regardless of whether the sub mounts are busy.
ksys_umountNow umount can handle mount points as well as block devices.* This is important for filesystems which use unnamed block devices.* We now support a flag for forced unmount like the other 'big iron'* unixes
collect_mountsCaller should check returned pointer for errors
dissolve_on_fput
drop_collected_mounts
clone_private_mountlone_private_mount - create a private clone of a path* This creates a new vfsmount, which will be the clone of @path. The new will* not be attached anywhere in the namespace and will be private (i.e. changes
iterate_mounts
do_change_typersively change the type of the mountpoint.
__do_loopback
do_loopbackdo loopback mount.
do_reconfigure_mntHandle reconfiguration of the mountpoint only without alteration of the* superblock it refers to. This is triggered by specifying MS_REMOUNT|MS_BIND* to mount(2).
do_remounthange filesystem flags. dir should be a physical root of filesystem.* If you've mounted a non-root directory somewhere and want to do remount* on it - tough luck.
do_move_mount
do_add_mountadd a mount into a namespace's mount tree
do_new_mount_fcCreate a new mount using a superblock configuration and request it* be added to the namespace tree.
finish_automount
mnt_set_expirymnt_set_expiry - Put a mount on an expiration list*@mnt: The mount to list.*@expiry_list: The list to add the mount to.
mount_subtree
SYSCALL_DEFINE3Create a kernel mount representation for a new, prepared superblock* (specified by fs_fd) and attach to an open_tree-like file descriptor.
path_is_under
SYSCALL_DEFINE2pivot_root Semantics:* Moves the root file system of the current process to the directory put_old,* makes new_root as the new root file system of the current process, and sets* root/cwd of all processes which had them on the current root to new_root
init_mount_tree
kern_mount
kern_unmount
our_mnt
mnt_may_suid
prepend_pathprepend_path - Prepend path string to a buffer*@path: the dentry/vfsmount to report*@root: root vfsmnt/dentry*@buffer: pointer to the end of the buffer*@buflen: pointer to buffer length* The function will first try to write out the pathname without taking
pin_insert
show_vfsmnt
show_mountinfo
show_vfsstat
fsnotifyThis is the main call to fsnotify. The VFS calls into hook specific functions* in linux/fsnotify.h. Those functions then in turn call here. Here will call* out to all of the registered fsnotify_group. Those groups can then use the
fanotify_remove_vfsmount_mark
fanotify_add_vfsmount_mark
do_sys_name_to_handle
is_mounted
fsnotify_clear_marks_by_mount the list of all marks associated with vfsmount and destroy them