io_unmap Kernel Service

Purpose

Detach from an I/O mapping

Syntax

#include <sys/adspace.h>

void io_unmap (eaddr)
void *eaddr;

Description

The io_unmap kernel service removes addressibility to the I/O address space defined by the eaddr parameter. There must be a valid active mapping from a previous io_map call for this effective address. The eaddr parameter can be any valid effective address within the segment, and it does not have to be exactly the same as the address returned by io_map.

The io_unmap kernel service is a replacement call for the iomem_det kernel service, which is deprecated on AIX® 6.1. However, the io_unmap kernel service might replace multiple iomem_det calls depending on the device, the driver, and whether multiple regions were mapped into a single virtual segment using the io_map_init kernel service.

Parameters

Item Description
eaddr Received on a prior successful call to io_map. Effective address for the I/O space to detach from.

Execution Environment

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