Subject: Re: IPL-lowering functions should return 'void', and now they do.
To: Ben Harris <bjh21@netbsd.org>
From: Andrew Brown <atatat@atatdot.net>
List: tech-kern
Date: 06/08/2000 12:22:39
>> it seems to me that splx() ought to be allowed to return void but that
>> the others should all return the previous ipl.  i can, after all,
>> always ignore the return value of the spl() function if i don't need
>> it, right?
>
>Erm, the point is that anyone trying to lower the spl should be doing it
>permanently, and hence shouldn't need to know the old one.  Anyone who
>needs to know what the spl was is probably doing the wrong thing.
>
>Also, it takes some effort for a function to return int rather than void,
>so making the spl-lowering functions return void should make them slightly
>faster.

well...since you put it that way it makes more sense.  i'll go back to
lurking.  :)

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
andrew@crossbar.com       * "information is power -- share the wealth."