bug-hurd
[Top][All Lists]
Advanced

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

Re: Wrapper around macro around ...???


From: Marcus Brinkmann
Subject: Re: Wrapper around macro around ...???
Date: Tue, 27 Nov 2001 12:59:03 +0100
User-agent: Mutt/1.3.23i

On Tue, Nov 27, 2001 at 11:14:30AM +0100, Jan Atle Ramsli wrote:
> 
> >  error_t
> >  _hurd_ports_use (int which, error_t (*operate) (mach_port_t))
> >  {
> > +  if (_hurd_ports == NULL)
> > +    return ENOENT;
> >    return HURD_PORT_USE (&_hurd_ports[which], (*operate) (port));
> >  }
> > 
> > END OF PATCH.
> 
> Could someone please explain what tihs function is doing?

It is a function that allows one to access one of the ports in the task's
initial port table conveniently (see hurd_ports_get, hurd_ports_set and
<hurd/hurd_types.h>).

Note that the macro is more generic than the function, which only allows
access to the init ports, while the macro allows any port (and is used like
this in glibc).  Note also that the function itself is used as an argument
in the hurdlookup.c routines.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de



reply via email to

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