Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_device_munmap.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_device_munmap.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_device_munmap.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_device_munmap.html on line 8

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()


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_device_munmap.html on line 127

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_device_munmap.html on line 127