Releases a reference to a virtual node (v-node).
int vnop_rele ( vp,)
struct vnode *vp;
Item | Description |
---|---|
vp | Points to the v-node. |
The vnop_rele entry point is used by the logical file system to release the object associated with a v-node. If the object was the last reference to the v-node, the vnop_rele entry point then calls the vn_free kernel service to deallocate the v-node.
If the virtual file system (VFS) was unmounted while there were open files, the logical file system sets the VFS_UNMOUNTING flag in the vfs structure. If the flag is set and the v-node to be released is the last v-node on the chain of the vfs structure, then the virtual file system must be deallocated with the vnop_rele entry point.
The vnop_rele entry point can be called from the process environment only.
Item | Description |
---|---|
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.