ado_device_munmap()

Release a virtual memory region

Synopsis:

#include <audio_driver.h>

int ado_device_munmap( void *addr,
                       unsigned long size );

Arguments:

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

Description:

The ado_device_munmap() function releases any virtual memory regions that were mapped into the region, starting at addr that runs for size bytes, rounded up to the next multiple of the page size. Subsequent references to these pages cause a SIGSEGV signal to be set on the process.

If there are no mappings in the specified address range, calling ado_device_munmap() has no effect.

Returns:

-1 if an error occurred (errno is set). Any other value indicates success.

Errors:

EINVAL
The addresses in the specified range are outside the range allowed for the address space of a process.
ENOSYS
Memory unmapping isn't supported by this implementation.

Classification:

QNX Neutrino

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

See also:

ado_device_mmap()