vm_qpages Kernel Service

Purpose

Returns the number of in-memory page frames associated with the virtual memory object.

Syntax

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

vpn_t vm_qpages ( sid)
vmid_t sid;

Parameters

Item Description
sid Identifies the base segment.

Description

The vm_qpages kernel service routine returns the number of page frames associated with the virtual memory object with the sid parameter specified.

Execution Environment

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

This function can be run for persistent, client, and working storage segments.

Return Values

Item Description
npages The number of page frames.
-1 Indicates an invalid sid parameter.