函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:may_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.

函数原型:int may_umount_tree(struct vfsmount *m)

返回类型:int

参数:

类型参数名称
struct vfsmount *m
1309  mnt等于real_mount(m)
1310  actual_refs等于0
1311  minimum_refs等于0
1313  BUG_ON(!m)
1316  lock_mount_hash()
1317 p循环
1318  actual_refs加等于vfsmount lock must be held for write
1319  minimum_refs加等于2
1321  unlock_mount_hash()
1323  如果actual_refs大于minimum_refs则返回:0
1326  返回:1