[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]
Technical Reference: Kernel and Subsystems, Volume 1
kvmgetinfo Kernel Service
Purpose
Retrieves Virtual Memory Manager (VMM) information.
Syntax
#include <sys/vminfo.h>
int kvmgetinfo ( void *out, int command, int arg)
Description
The kvmgetinfo kernel service returns the current
value of certain VMM parameters.
Parameters
out |
Specifies the address where VMM information should be returned. |
command |
Specifies which information should be returned. The valid values
for the command parameter are decribed below:
- VMINFO
- The content of vmminfo structure (described in sys/vminfo.h) will be returned. The out parameter should point to a vminfo structure
and the arg parameter should be the size of this structure.
The smaller of the arg or sizeof (vminfo structure) parameters will be copied.
- VM_PAGE_INFO
- The size, in bytes, of the page backing the address specified in the addr field of the vm_page_info structure
(described in the sys/vminfo.h file) is returned. The out parameter should point to a vm_page_info structure with the addr field set to the desired
address of which to query the page size. This address, addr, is interpreted as an address in the address space of the current
running process. The arg parameter should be the size
of the vm_page_info structure.
- IPC_LIMITS
- The content of the ipc_limits struct (described
in the sys/vminfo.h file) is returned. The out parameter should point to an ipc_limits structure
and arg should be the size of this structure. The
smaller of the arg or sizeof (struct ipc_limits) parameters will be copied. The ipc_limits struct contains the inter-process communication (IPC) limits
for the system.
|
arg |
An additional parameter which will depend upon the command parameter. |
Execution Environment
The kvmgetinfo kernel service can be called from
the process environment only.
Return Values
0 |
Indicates successful completion. |
ENOSYS |
Indicates the command parameter is not valid
(or not yet implemented). |
EINVAL |
When VM_PAGE_INFO is the command, the adr field
of the vm_page_info structure is an invalid address. |
Related Information
Memory Kernel Services and Understanding Virtual Memory Manager Interfaces in AIX 5L Version 5.2 Kernel Extensions and Device Support Programming Concepts.
[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]