1

I'm trying to define a shared memory for IPC across two processes on an embedded device where the root is readonly.

It appears that this condition does not allow the creation.

How can I create a shared memory on RO filesystem?

This is the incriminated code:

//...
auto m_fmap = shm_open("/common_memory", O_CREAT | O_RDWR | O_EXCL, (S_IRUSR | S_IWUSR));
    if (m_fmap  == SHARED_INVALID) {
        printf("error opening sh. mem!\n");
        Close();
        return false;
    }

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.