vm_mounte Kernel Service

Purpose

Adds a file system with a thread-level strategy routine to the paging device table.

Syntax

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

int vm_mounte ( in_dtype, in_devid, in_thrinfop)
int in_dtype;
dev_t in_devid;
struct thrpginfo * in_thrinfop;

Parameters

Item Description
in_dtype Specifies the type of device. Supported device types are D_REMOTE, D_LOGDEV, D_SERVER, D_LOCALCLIENT. Other optional flags are detailed below.
in_devid If the type is D_LOGDEV, specifies a dev_t object of the block device. If the type is D_REMOTE or D_SERVER, specifies a pointer to a strategy routine.
in_thrinfop Pointer to a thrpginfo structure.

Description

The vm_mounte kernel service allocates an entry in the paging device table for the device specified. The vm_mounte kernel service can also mount a client file system with a thread-level strategy routine. This is done by passing in the D_THRPGIO and the D_ENHANCEDIO flags.

Flags

Name Purpose
D_ENHANCEDIO Indicates an enhanced I/O-aware file system.
D_PREXLATE Enables pre-translation as the default for all but remote file systems.
D_THRPGIO Indicates a thread-level strategy routine.

Execution Environment

The vm_mounte 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 or the thrpginfo structure.
EINVAL Indicates one of the following errors:
  • The file system strategy pointer is already in the paging device table, or in case of D_SERVER, a server is already defined.
  • The in_dtype parameter is set to the D_PAGING or the D_FILESYSTEM value.
  • The thrpginfo structure has not been initialized correctly.
  • The D_THRPGIO flag has been set without the D_ENHANCEDIO flag.