Release a virtual memory region
#include <audio_driver.h> int ado_device_munmap( void *addr, unsigned long size );
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.
-1 if an error occurred (errno is set). Any other value indicates success.
QNX Neutrino
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |