01/22/2015 11:11 AM
post113031
|
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
|
|
|