[PATCH 3/4] add rtas_service_present() helper
Michael Ellerman
michael at ellerman.id.au
Thu Dec 7 13:51:33 EST 2006
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 ..
But should it be called rtas_token_present() ? :D
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20061207/d7a10fb0/attachment.pgp>
More information about the Linuxppc-dev
mailing list