diff options
author | ru <ru@FreeBSD.org> | 2001-12-14 09:11:13 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-12-14 09:11:13 +0000 |
commit | 5cbdc3fd68f69652ae7680ccce867f54dcfeddd7 (patch) | |
tree | 61ed68fe6d5c7568f5fc0295ecebad6da8de3536 /share/man/man9/vfs_mountedon.9 | |
parent | 1e98a2bc17719c5f5e790cc6121376192638812b (diff) | |
download | FreeBSD-src-5cbdc3fd68f69652ae7680ccce867f54dcfeddd7.zip FreeBSD-src-5cbdc3fd68f69652ae7680ccce867f54dcfeddd7.tar.gz |
mdoc(7) police: markup, grammar and spelling nits.
Reviewed by: davidc
Diffstat (limited to 'share/man/man9/vfs_mountedon.9')
-rw-r--r-- | share/man/man9/vfs_mountedon.9 | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/share/man/man9/vfs_mountedon.9 b/share/man/man9/vfs_mountedon.9 index e970d67..07f2b09 100644 --- a/share/man/man9/vfs_mountedon.9 +++ b/share/man/man9/vfs_mountedon.9 @@ -34,41 +34,43 @@ .Nd "check if the vnode belongs to a mounted filesystem" .Sh SYNOPSIS .In sys/param.h -.In sys/vnode.h +.In sys/mount.h .Ft int .Fn vfs_mountedon "struct vnode *vp" .Sh DESCRIPTION .Fn vfs_mountedon -inspects the mount structure in +inspects the +.Vt mount +structure in .Fa vp to determine if it points to a valid mount point. -If the mount is valid the vnode is considered to be busy. +If the mount is valid, the vnode is considered to be busy. .Pp A common use of .Fn vfs_mountedon -it to call it on device vnodes to determine if they are already associated with +is to call it on device vnodes to determine if they are already associated with a filesystem. This is done to prevent multiple mounts on the same device. .Sh RETURN VALUES -.Dv EBUSY +.Er EBUSY is returned if the vnode has a valid mount point; otherwise, 0 is returned. .Sh PSEUDOCODE .Bd -literal - int - ffs_mountfs(devvp, mp, td, malloctype) - register struct vnode *devvp; - struct mount *mp; - struct thread *td; - struct malloc_type *malloctype; - { - ... +int +ffs_mountfs(devvp, mp, td, malloctype) + register struct vnode *devvp; + struct mount *mp; + struct thread *td; + struct malloc_type *malloctype; +{ + ... - error = vfs_mountedon(devvp); - if (error) - return (error); + error = vfs_mountedon(devvp); + if (error) + return (error); - ... - } + ... +} .Ed .Sh AUTHORS This man page was written by |