vfs_mount Entry Point

Purpose

Mounts a virtual file system.

Syntax

int vfs_mount ( vfsp)
struct vfs *vfsp;
struct ucred * crp;

Parameter

Item Description
vfsp Points to the newly created vfs structure.
crp Points to the cred structure. This structure contains data that the file system can use to validate access permission.

Description

The vfs_mount entry point is called by the logical file system to mount a new file system. This entry point is called after the vfs structure is allocated and initialized. Before this structure is passed to the vfs_mount entry point, the logical file system:

Execution Environment

The vfs_mount entry point can be called from the process environment only.

Return Values

Item Description
0 Indicates success.

Nonzero return values are returned from the /usr/include/sys/errno.h file to indicate failure.