Subject: Re: Rev 1.19 of busdma.doc
To: Bill Sommerfeld <sommerfeld@orchard.medford.ma.us>
From: Justin T. Gibbs <gibbs@freefall.freebsd.org>
List: tech-kern
Date: 11/11/1996 09:07:06
>> If the 'op' is a compile-time constant and the "function" is either inline
>> or a macro, you get the same effect without having to expand the name space
>> of the API for each new 'op' you may add.
>
>Is the name space of the API that precious a commodity?
>
>I'm not sure that preserving it is worth the cost of having a complex
>macro with an unreadable nest of ?: operators, or an overly large
>inline function which *definitely* bloats up the code if someone makes
>the mistake of passing a variable op to it.
>
> - Bill
Do people call malloc with a variable set to M_NOWAIT? No, they use
M_NOWAIT directly. I don't think this is a problem.
I think that an API should be extendable without having to add additional
functions if possible.
--
Justin T. Gibbs
===========================================
FreeBSD: Turning PCs into workstations
===========================================