On Tue, Apr 27, 2010 at 02:32:27AM -0700, bootbhai wrote:
>
>
>
> >Servers keep 1:1 mapping between their own tables and kernel
> > process table thus they use _ENDPOINT_P to figure the slot out.
> > _ENDPOINT_G is used to find out whether the slot has been reused by
> > another process or another incarnation in the mean time.
>
> _ENDPOINT_P figures out the slot in kernel process table or server's
> tables??
it is 100% valid only in kernel, however, it is convenient to have the
same mapping in the servers too.
>
>
> which part of the code does the mapping between kernel process table
> and server's process table??
Each server does it on its own. There is no requirement on the
mapping. Userland only must keep the endpoints in whatever way it likes
as the endpoint is the only identifier valid in the kernel. It is used
for kernel calls and ipc.
T.