Provided by: freebsd-manpages_7.0-2_all
vfs_mountedon - check if the vnode belongs to a mounted file system
vfs_mountedon(struct vnode *vp);
vfs_mountedon() inspects the mount structure in vp to determine if it
points to a valid mount point. If the mount is valid, the vnode is
considered to be busy.
A common use of vfs_mountedon() is to call it on device vnodes to
determine if they are already associated with a file system. This is
done to prevent multiple mounts on the same device.
EBUSY is returned if the vnode has a valid mount point; otherwise, 0 is
ffs_mountfs(devvp, mp, td, malloctype)
register struct vnode *devvp;
struct mount *mp;
struct thread *td;
struct malloc_type *malloctype;
error = vfs_mountedon(devvp);
This manual page was written by Chad David 〈email@example.com〉.