Shared memory

How to use Offset parameter in mmap.
Can i give an offset within PAGESIZE.

vasdev <vasdev_vs@hotmail.com> wrote:

How to use Offset parameter in mmap.

It is the offset from the start of the shared object to
start the mapping.

If mapping physical memory (shm_open("/dev/shmem/physical",…)
then it is the physical address.

If dealing with a shared memory object, it can allow you to start
your process’s mapping part way through the object.

Can i give an offset within PAGESIZE.

I don’t think so – I think it should be a multiple of PAGESIZE.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.