Re: TUNABLE_INT vs TUNABLE_INT_FETCH

From: Attilio Rao <attilio_at_freebsd.org>
Date: Thu, 23 Aug 2012 15:52:56 +0100
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
Received on Thu Aug 23 2012 - 12:52:59 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:30 UTC