I am porting some linux diver and application to QNX. In Linux it uses a shared memory to access mutex across processes. The following is the pseudo code used in Linux
fd = creat(//dev/shm/shmfile, 0664);
fd = open(/dev/shm/shmfile, O_RDWR);
ptr = mmap(0x40000000, ps, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
I am following same steps in QNX. Instead of creating the shared memory file in /dev/shm/ it is created under /dev/shmem
But the mutex shared using this method is not able to be accessed on the other process when the shared memory was mapped. Do I need to use shm_open/shm_ctl/ instead of creat/open?