vm_makep Kernel Service

Purpose

Makes a page in client storage.

Syntax

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

int vm_makep ( vmid,  pno)
vmid_t  vmid;
int pno;  

Parameters

Item Description
vmid Specifies the ID of the virtual memory object.
pno Specifies the page number in the virtual memory object.

Description

The vm_makep kernel service makes the page specified by the pno parameter addressable in the virtual memory object without requiring a page-in operation. The vm_makep kernel service is restricted to client storage.

The page is not initialized to any particular value. It is assumed that the page is completely overwritten. If the page is already in memory, a value of 0, indicating a successful operation, is returned.

Execution Environment

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

Return Values

Item Description
0 Indicates a successful operation.
EINVAL Indicates a virtual memory object type or page number that is not valid.
EFBIG Indicates that the page number exceeds the file-size limit.