That dev_offset value is used as an offset into the server side mmap
address space. And yes, vma->vm_pgoff and dev_offset should be SHMLBA
multiples apart.
But don't call that _adjustment_. That's totally confusing, these are
*two* *different* *offsets*. There's an alignment requirement but
that's all. If they are the same that is pure coincidence.
And dev_offset (which points into the dmmap address space) is only
required if the filesystem/CUSE driver needs server side mmap.
I understand that, and that's where the interesting part comes in:
make the mmap API in a way that it works with and without server side
mmap.
Thanks,
Miklos
--