Re: Copy-on-write with vmalloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 7 May 2018, Eric Wheeler wrote:

> I would like to clone a virtual address space so that the address spaces
> share physical pages until a write happens, at which point it would copy
> to a new physical page.  I've looked around and haven't found any
> documentation. Certainly fork() already does this, but is there already
> simple way to do it with a virtual address space?

The clone() syscall does it (since it is the underlying basis for fork).

The same effect can also be had by using mmap with
MAP_PRIVATE on a shared memory segment.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux