pagg
[Top] [All Lists]

Re: New PAGG patch for 2.6.10, new functionality

To: Erik Jacobson <erikj@xxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: New PAGG patch for 2.6.10, new functionality
From: Kingsley Cheung <kingsley@xxxxxxxxxx>
Date: Tue, 11 Jan 2005 10:37:50 +1100
Cc: pagg@xxxxxxxxxxx
In-reply-to: <Pine.SGI.4.53.0501061543190.9858@xxxxxxxxxxxxxxxxxxxxxxx>
References: <Pine.SGI.4.53.0501061543190.9858@xxxxxxxxxxxxxxxxxxxxxxx>
Sender: pagg-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Thu, Jan 06, 2005 at 03:50:30PM -0600, Erik Jacobson wrote:
> Hi there.
> 
> I just uploaded a new PAGG patch for 2.6.10.  It includes a request to
> slightly change how the attach function pointer of the PAGG hook is
> managed.
> 
> Note that we may be posting another PAGG patch soon with some other
> changes.
> 
> We now make it so the PAGG user can decide if a new process will actually
> be grouped or not by looking at the attach function pointer return
> value.
> 
> The attach function, pointed to by the PAGG hook and run by pagg_attach,
> can have these return values:
> 
> <0 Error which is propagated back to copy_process so
>    the fork fails.
> 
> =0 success, attach to same container as parent
> 
> >0 success, but don't attach to a container
> 
> It's also important to note that, as of now, if a negative value is
> returned by the attach function pointer, the value will be passed up
> through copy_process as a fork failure.

Eric,

One thought has come to mind.  Was there a reason why similar
semantics weren't applied to pagg_init?  I would have thought it would
make things consistent with pagg_attach.  With error returns like:

 <0 Error which is propagated back to copy_process so
    the registration function fails completely.
 
 =0 success, attach to same container as parent
 
 >0 success, but don't attach to a container

That way processes can be ignored by pagg_init just as they can be by
pagg_attach.

Thanks,
-- 
                Kingsley

<Prev in Thread] Current Thread [Next in Thread>