l4-hurd
[Top][All Lists]
Advanced

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

Re: Pthread assumption + starting real port


From: Johan Rydberg
Subject: Re: Pthread assumption + starting real port
Date: Thu, 16 Nov 2000 11:59:05 +0100

"Niels Möller" wrote:

> > > ipc_send_1() for sending a single word,
> > > ipc_send_7() for sending seven words,
> > > ipc_send_4_vm() for sending 4 words and some memory pages.
> >
> > I really don't think this make sense. It may be the best solution for
> > Hurd/L4, but I thought that the reason for libmon was to make GNU/Hurd
> > portable to ANY microkernel, correct ?
> 
> Well, on a micro kernel that only have a single message send function
> that handles all message sizes equally well, all the "ipc_send_N"
> functions could macro expand into calls to the same underlying ipc
> call. The idea is to privide the "libmom" layer with enough
> information for it to be well optimized for a particular micro kernel.
> Message size seems like a reasonably generic and useful parameter for
> doing that.

But i still think that this makes the libmon API more adjusted to the L4
kernel that it should.  Why not implement mon_ipc_send (MSG, LENGTH) and
that function takes the decision what optimization method it should use.

>From my point of view, this is a better choice. 

-- 
Johan Rydberg, Net Insight AB, Sweden, +46-8-685 04 00

$ ON F$ERROR("LANGUAGE","ENGLISH","IN_MESSAGE").GT.F$ERROR("NORMAL") -
             THEN EXCUSE/OBJECT=ME



reply via email to

[Prev in Thread] Current Thread [Next in Thread]