ado_device_mmap()

Map a region of physical memory

Synopsis:

#include <audio_driver.h>

void *ado_device_mmap ( unsigned long addr,
                        unsigned long size );

Arguments:

addr
The address of the physical memory region.
size
The size of the physical memory region, in bytes.

Description:

The ado_device_mmap() function maps the specified region of physical memory into the driver's virtual memory.

Returns:

A pointer to the resultant virtual memory region, or MAP_FAILED if an error occurred (errno is set).

Errors:

ENOMEM
The address range requested is outside of the allowed process address range, or there wasn't enough memory to satisfy the request.
ENXIO
The address from addr for size bytes is invalid for the requested object.

Classification:

QNX Neutrino

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

ado_device_munmap()