Re: Kernel support for peer-to-peer protection models...

Davide Libenzi
2004-03-29T03:48:27Z

On Sun, 28 Mar 2004, Ivan Godard wrote:

> ----- Original Message -----
> From: "Paul Mackerras" <paulus@samba.org>
> To: "Ivan Godard" <igodard@pacbell.net>
> Cc: "Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>
> Sent: Sunday, March 28, 2004 4:17 PM
> Subject: Re: Kernel support for peer-to-peer protection models...
>
>
> > Ivan Godard writes:
> >
> > > 3) flat, unified virtual addresses (64 bit) so that pointers, including
> > > inter-space pointers, have the same representation in all spaces
> >
> > How are you going to implement fork() ?
>
> The usual COW using the page tables. The child keeps the same code space but
> gets a new data space. I expect that specialized versions of fork will give
> explicit control over which space the child gets, but in comman usage no one
> cases just as no one cares which PID it gets.

Uh?

int myexec(char const *cmd) {

if (!fork()) {
exit(exec(cmd));
}
...
}

- Davide