Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Aug 2012 15:52:56 +0100
From:      Attilio Rao <attilio@freebsd.org>
To:        Luigi Rizzo <rizzo@iet.unipi.it>
Cc:        current@freebsd.org
Subject:   Re: TUNABLE_INT vs TUNABLE_INT_FETCH
Message-ID:  <CAJ-FndCSfXvEmYjuEi985JPoiZYStOaqdeYsjyepHS8C55Szkw@mail.gmail.com>
In-Reply-To: <20120823145420.GB3103@onelab2.iet.unipi.it>
References:  <20120823145420.GB3103@onelab2.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/23/12, Luigi Rizzo <rizzo@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-FndCSfXvEmYjuEi985JPoiZYStOaqdeYsjyepHS8C55Szkw>