vnop_rele Entry Point

Purpose

Releases a reference to a virtual node (v-node).

Syntax

int vnop_rele ( vp,)
struct vnode *vp;

Parameter

Item Description
vp Points to the v-node.

Description

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.

Execution Environment

The vnop_rele entry point can be called from the process environment only.

Return Values

Item Description
0 Indicates success.

Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.