Releases all resources associated with a virtual file system.
#include <sys/types.h>
#include <sys/errno.h>
int vfsrele ( vfsp)
struct vfs *vfsp;
Item | Description |
---|---|
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 vnop_rele v-node operation releases the last active v-node within the file system, the vnop_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.