Returns the number of in-memory page frames associated with the virtual memory object.
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/vmuser.h>
vpn_t vm_qpages ( sid)
vmid_t sid;
| Item | Description |
|---|---|
| sid | Identifies the base segment. |
The vm_qpages kernel service routine returns the number of page frames associated with the virtual memory object with the sid parameter specified.
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.
| Item | Description |
|---|---|
| npages | The number of page frames. |
| -1 | Indicates an invalid sid parameter. |