Releases a reference to a virtual node (v-node).
int vn_rele (vp,) struct vnode *vp;
vp | Points to the v-node. |
The vn_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 vn_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 vn_rele entry point.
The vn_rele entry point can be called from the process environment only.
0 | Indicates success. |
Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.
The vn_free kernel service.
Virtual File System Overview, Virtual File System Kernel Extensions Overview, Logical File System Overview, Understanding Virtual Nodes (V-nodes) in AIX Kernel Extensions and Device Support Programming Concepts.
List of Virtual File System Operations.