vm_umount Kernel Service

Purpose

Removes a file system from the paging device table.

Syntax

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

int vm_umount ( type,  devid)
int type;
dev_t devid)();

Parameters

Item Description
type Specifies the type of device. You can specify multiple values. But the type parameter must have a value of D_REMOTE as one of its values. You can also specify the following optional value:
D_NOWAIT
Indicates that if I/O discovered during a prior vm_setdevid call has not yet completed, the paging device table entry will be removed, asynchronously, at a future point in time when all such I/O to it has completed. This particular vm_umount kernel service call will return without waiting for the I/O to complete. Any buf structures associated with this paging device entry remain allocated until the paging device entry is finally removed.
devid Points to the strategy routine.

Description

The vm_umount kernel service waits for all I/O for the device scheduled by the pager to finish. This service then frees the entry in the paging device table. The associated buf structures are also freed.

Execution Environment

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

Return Values

Item Description
0 Indicates successful completion.
EINVAL Indicates that a file system with the strategy routine designated by the devid parameter is not in the paging device table.