Frees a v-node previously allocated by the vn_get kernel service.
#include <sys/types.h> #include <sys/errno.h>
int vn_free (vp) struct vnode *vp;
|vp||Points to the v-node to be deallocated.|
The vn_free kernel service provides a mechanism for deallocating v-node objects used within the virtual file system. The v-node specified by the vp parameter is returned to the pool of available v-nodes to be used again.
The vn_free kernel service can be called from the process environment only.
The vn_free service always returns 0.
The vn_free kernel service is part of Base Operating System (BOS) Runtime.
The vn_get kernel service.
Virtual File System Overview and Virtual File System (VFS) Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.