QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Hard code the address of shared memory |
Ref. No. |
QNX.000002530 |
Category(ies) |
Development |
Issue |
In QNX4, is there a way to hard code the address of shared memory in my application ?
|
Solution |
Yes, you can hard code the address in, but it is non-portable. If you want to change where the shared memory is, or how large it is, the address will have to change as well, forcing a recompile. Only an address of 0 in the mmap() function is portable, but an address with MAP_FIXED will work. This is covered in the technote on your machine at /etc/readme/technotes/shmem.txt . |
|