Subject: Re: direct copy() between two proc address spaces
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
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
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@example.com
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B