函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:llect all mounts that receive propagation from the mount in @list,* and return these additional mounts in the same list.*@list: the list of mounts to be unmounted.* vfsmount lock must be held for write

函数原型:int propagate_umount(struct list_head *list)

返回类型:int

参数:

类型参数名称
struct list_head *list
539  LIST_HEAD(to_restore)
540  LIST_HEAD(to_umount)
541  LIST_HEAD(visited)
545  parent等于mnt_parent
554  如果非链表为空则继续下一循环
557  添加链表项
558 m循环
560  child等于d the first mount at @dentry on vfsmount @mnt.* call under rcu_read_lock()
562  如果非child则继续下一循环
565  如果非链表为空
574  继续下一循环
575  否则如果mnt_flags按位与MNT_UMOUNT
583  继续下一循环
590  child等于mnt_parent
591  如果链表为空退出
597  umount_list( & to_umount, & to_restore)
598  restore_mounts( & to_restore)
599  cleanup_umount_visitations( & visited)
600  加入二个链表项
602  返回:0
调用者
名称描述
umount_treemount_lock must be held* namespace_sem must be held for write