Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Shared memory: (1 Item)
   
Shared memory  
I create shared memory with some code like this

 p->fd = shm_open( p->path, O_CREAT | O_RDWR , (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH));
 p->busData = (BusData *) mmap( NULL, sizeof(BusData), PROT_READ | PROT_WRITE, MAP_SHARED, p->fd, 0)

Is it possible to allocate shared memory with an area having the rights read/write and an area having the rights read-
only?


Thank

Olivier