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;
Item | Description |
---|---|
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.