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

Technical Reference: Kernel and Subsystems, Volume 1

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.

This is a replacement call for iomem_det, however, it might replace multiple iomem_det calls depending on the device and driver and whether multiple regions were mapped into this single virtual segment through io_map_init.

Parameters

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.

Related Information

io_map_init Kernel Service, io_map_clear Kernel Service, and io_map Kernel Service.

Programmed I/O (PIO) Kernel Services 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 ]