Releases all resources associated with a virtual file system.
#include <sys/types.h> #include <sys/errno.h>
int vfsrele (vfsp) struct vfs *vfsp;
vfsp | Points to a virtual file system structure. |
The vfsrele kernel service releases all resources associated with a virtual file system.
When a file system is unmounted, the VFS_UNMOUNTED flag is set in the vfs structure, indicating that it is no longer valid to do path name-related operations within the file system. When this flag is set and a VN_RELE v-node operation releases the last active v-node within the file system, the VN_RELE v-node implementation must call the vfsrele kernel service to complete the deallocation of the vfs structure.
The vfsrele kernel service can be called from the process environment only.
The vfsrele kernel service always returns a value of 0.
The vfsrele kernel service is part of Base Operating System (BOS) Runtime.
Virtual File System Overview, Virtual File System (VFS) Kernel Services, Understanding Virtual Nodes (V-nodes) in AIX Kernel Extensions and Device Support Programming Concepts.