Function

vnode_ismountedon

Determine if a vnode is a block device on which a filesystem has been mounted.

Declaration

int vnode_ismountedon(vnode_t vp);

Parameters

vp

The vnode to test.

Return Value

Nonzero if the vnode is a block device on which an filesystem is mounted, 0 otherwise.

Discussion

A block device marked as being mounted on cannot be opened.