[PATCH 3/4] add rtas_service_present() helper
Linas Vepstas
linas at austin.ibm.com
Fri Dec 8 08:05:27 EST 2006
On Thu, Dec 07, 2006 at 01:51:33PM +1100, Michael Ellerman wrote:
> On Wed, 2006-12-06 at 18:50 -0600, Nathan Lynch wrote:
> > To test for the existence of an RTAS function, we typically do:
> >
> > foo_token = rtas_token("foo");
> > if (foo_token == RTAS_UNKNOWN_SERVICE)
> > return;
> >
> > Add a rtas_service_present method, which provides a more conventional
> > boolean interface for testing the existence of an RTAS method.
>
>
> I like it a lot ..
Me too ... How about making it inline?
--linas
More information about the Linuxppc-dev
mailing list