函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:restore_mounts

函数原型:static void restore_mounts(struct list_head *to_restore)

返回类型:void

参数:

类型参数名称
struct list_head *to_restore
500  当非链表为空循环
504  mnt等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(to_restore, structmount, mnt_umounting)
505  CLEAR_MNT_MARK(mnt)
506  删除链表项并重新初始化
509  mp等于 where is it mounted
510  parent等于mnt_parent
511 mnt_flags按位与MNT_UMOUNT循环
513  parent等于mnt_parent
515  如果parent不等于mnt_parentmnt_change_mountpoint(parent, mp, mnt)
调用者
名称描述
propagate_umountllect 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