[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

vfs_hold or vfs_unhold Kernel Service

Purpose

Holds or releases a vfs structure.

Syntax

#include <sys/vfs.h>
void vfs_hold(vfsp)
struct vfs *vfsp;
void vfs_unhold(vfsp)
struct vfs *vfsp;

Parameter

vfsp Points to a vfs structure.

Description

The vfs_hold kernel service holds a vfs structure and the vfs_unhold kernel service releases it. These routines manage a use count for a virtual file system (VFS). A use count greater than 1 prevents the virtual file system from being unmounted.

Execution Environment

These kernel services can be called from the process environment only.

Return Values

None

Implementation Specifics

These kernel services are part of Base Operating System (BOS) Runtime.

Related Information

List of Virtual File System Operations.


[ Previous | Next | Contents | Home | Search ]