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_mmap.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_mmap.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_mmap.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_mmap.html on line 8
Map a region of physical memory
#include <audio_driver.h>
void *ado_device_mmap ( unsigned long addr,
unsigned long size );
- addr
- The address of the physical memory region.
- size
- The size of the physical memory region, in bytes.
The ado_device_mmap() function maps the specified region of
physical memory into the driver's virtual memory.
A pointer to the resultant virtual memory region,
or MAP_FAILED if an error occurred
(errno
is set).
- 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.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
ado_device_munmap()
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_mmap.html on line 122
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_mmap.html on line 122