munmap_device_io()

Free access to a device's registers

Synopsis:

#include <sys/mman.h>

int munmap_device_io( uintptr_t io,
                      size_t len );

Since:

BlackBerry 10.0.0

Arguments:

io
The address of the area that you want to unmap.
len
The number of bytes of device I/O memory that you want to unmap.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The function munmap_device_io() unmaps len bytes of device I/O memory at io (that was previously mapped with mmap_device_io()).

Returns:

-1
An error occurred ( errno is set).
Any other value
Successful unmapping.

Errors:

EINVAL
The addresses in the specified range are outside the range allowed for the address space of a process.
ENOSYS
The function munmap() isn't supported by this implementation.
ENXIO
The address from io for len bytes is invalid.

Classification:

QNX Neutrino

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

Last modified: 2014-06-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus