TUNABLE_INT vs TUNABLE_INT_FETCH
Attilio Rao
attilio at freebsd.org
Thu Aug 23 14:52:59 UTC 2012
On 8/23/12, Luigi Rizzo <rizzo at iet.unipi.it> wrote:
> Hi,
> I am a bit unclear on what are the pros and cons of using
> TUNABLE_INT vs TUNABLE_INT_FETCH within a device driver.
TUNABLE_INT is basically the "statically initializer" version of
TUNABLE_INT_FETCH.
In short terms, you will use TUNABLE_INT_FETCH() in normal functions,
while TUNABLE_INT() in data declaration.
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the freebsd-current
mailing list