函数逻辑报告

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

函数名称:vfsmount lock must be held for write

函数原型:static void commit_tree(struct mount *mnt)

返回类型:void

参数:

类型参数名称
struct mount *mnt
878  parent等于mnt_parent
880  LIST_HEAD(head)
881  n等于 containing namespace
883  BUG_ON(parent == mnt)
885  添加链表项
886  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(m, & head, mnt_list)
887  containing namespace 等于n
889  为栈加入第二个链表项
891  # of mounts in the namespace 加等于pending_mounts
892  pending_mounts等于0
894  __attach_mnt(mnt, parent)
895  vfsmount lock must be held for write
调用者
名称描述
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