[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, Volume 1

vm_att Kernel Service

Purpose

Maps a specified virtual memory object to a region in the current address space.

Syntax

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


caddr_t vm_att ( vmhandle, offset)
vmhandle_t vmhandle;
caddr_t offset;

Parameters

vmhandle Specifies the handle for the virtual memory object to be mapped.
offset Specifies the offset in the virtual memory object and region.

Description

The vm_att kernel service performs the following tasks:

The vm_att kernel service assumes an address space model of fixed-size virtual memory objects and address space regions.

Attention: If there are no more free regions, this call cannot complete and calls the panic kernel service.

Execution Environment

The vm_att kernel service can be called from either the process or interrupt environment.

Return Values

The vm_att kernel service returns the address that corresponds to the offset parameter in the address space.

Related Information

The as_geth kernel service, as_getsrval kernel service, as_puth kernel service, vm_det kernel service.

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 ]