函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:next_mnt

函数原型:static struct mount *next_mnt(struct mount *p, struct mount *root)

返回类型:struct mount

参数:

类型参数名称
struct mount *p
struct mount *root
900  next等于链表后项
901  如果next恒等于 list of children, anchored here
902  当1循环
903  如果p恒等于root则返回:NULL
905  next等于链表后项
908  p等于mnt_parent
911  返回:list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(next, structmount, mnt_child)
调用者
名称描述
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.
umount_treemount_lock must be held* namespace_sem must be held for write
copy_tree
lock_mnt_tree
cleanup_group_ids
invent_group_ids
count_mounts
attach_recursive_mnt@source_mnt : mount tree to be attached*@nd : place the mount tree @source_mnt is attached*@parent_nd : if non-null, detach the source_mnt from its parent and* store the parent mount and mountpoint dentry
do_change_typersively change the type of the mountpoint.
open_detached_copy
tree_contains_unbindable
check_for_nsfs_mountsCheck that there aren't references to earlier/same mount namespaces in the* specified subtree. Such references can act as pins for mount namespaces* that aren't checked by the mount-cycle checking code, thereby allowing* cycles to be made.
copy_mnt_ns