Subject: Re: direct copy() between two proc address spaces
To: None <>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 06/20/2004 00:33:23
>> In short: Inside kernel, is it possibly to directly copy data from
>> address space of one process to address space of another process ?
> Why do you want to do this?  Usually this is handled by using either
> SysV shared memory, or having both processes mmap the same file.

If the processes have a cooperative common ancestor, you can also mmap
MAP_ANON|MAP_SHARED and inherit the mapping, without needing a file to
back it.

I've long thought that in addition to file descriptors, it should be
possible to send access to pages of memory through AF_LOCAL sockets,
sharing memory between unrelated processes (unrelated in terms of
process parenting and fork-tree, that is).

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B