函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:count_mounts

函数原型:int count_mounts(struct mnt_namespace *ns, struct mount *mnt)

返回类型:int

参数:

类型参数名称
struct mnt_namespace *ns
struct mount *mnt
1957  max等于READ_ONCE(Maximum number of mounts in a mount namespace )
1958  mounts等于0
1961 p循环mounts自加
1964  old等于 # of mounts in the namespace
1965  pending等于pending_mounts
1966  sum等于oldpending
1967  如果old大于sumpending大于summax小于summounts大于maxsum则返回:负ENOSPC
1973  pending_mounts等于pendingmounts
1974  返回:0
调用者
名称描述
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
propagate_one