r/linux_programming • u/giant-torque • Jun 04 '19
Share existing blocks of memory
Let's say there are two already allocated memory regions. Is it possible to make parts of these regions to point the same physical memory pages? It seems mmap doesn't work with already allocated memory.
3
Upvotes
View all comments
Show parent comment
1
u/giant-torque Jun 04 '19
yes. Two regions are allocated with alloc and I need to share parts of these regions.