vm_mount Kernel Service

Purpose

Adds a file system to the paging device table.

Syntax

#include <sys/types.h>
#include <sys/errno.h>
#include  <sys/vmuser.h>

int vm_mount ( type,  ptr,  nbufstr)
int type;  
int (*ptr)();
int nbufstr;    

Parameters

Item Description
type Specifies the type of device. The type parameter must have a value of D_REMOTE.
ptr Points to the file system's strategy routine.
nbufstr Specifies the number of buf structures to use.

Description

The vm_mount kernel service allocates an entry in the paging device table for the file system. This service also allocates the number of buf structures specified by the nbufstr parameter for the calls to the strategy routine.

Execution Environment

The vm_mount kernel service can be called from the process environment only.

Return Values

Item Description
0 Indicates a successful operation.
ENOMEM Indicates that there is no memory for the buf structures.
EINVAL Indicates that the file system strategy pointer is already in the paging device table.