Sharing page tables with mshare()
Sharing page tables with mshare()
Posted May 18, 2022 18:05 UTC (Wed) by willy (subscriber, #9762)In reply to: Sharing page tables with mshare() by ncm
Parent article: Sharing page tables with mshare()
Because the app wants different semantics from those normally provided by mmap(). Specifically, setting mprotect() on a sub-region of the area needs to apply to all processes mapping the area, not just this one.
It really does want "Treat this region of address space as if the sharing processes are threads but the rest of the address space is mine".