Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\namespace.c Create Date:2022-07-28 20:09:15
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:count_mounts

Proto:int count_mounts(struct mnt_namespace *ns, struct mount *mnt)

Type:int

Parameter:

TypeParameterName
struct mnt_namespace *ns
struct mount *mnt
1957  max = READ_ONCE(Maximum number of mounts in a mount namespace )
1958  mounts = 0
1961  When p cycle mounts++
1964  old = # of mounts in the namespace
1965  pending = pending_mounts
1966  sum = old + pending
1967  If old > sum || pending > sum || max < sum || mounts > max - sum Then Return -ENOSPC
1973  pending_mounts = pending + mounts
1974  Return 0
Caller
NameDescribe
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