atomic_t and atomic_inc
From: Al Niessner (Al.Niessner_at_jpl.nasa.gov)
Date: 04/22/04
- Previous message: Bartlomiej Zolnierkiewicz: "Re: [somewhat OT] binary modules agaaaain"
- Next in thread: Richard B. Johnson: "Re: atomic_t and atomic_inc"
- Reply: Richard B. Johnson: "Re: atomic_t and atomic_inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: linux-kernel@vger.kernel.org Date: Thu, 22 Apr 2004 11:58:40 -0700
First, I am not subscribed to this list so please reply to me directly
if you wish a timely response to any questions. In any case, I will lurk
in the archives for responses.
I am using atomic_t to count interrupts from some piece of hardware.
These interrupts come at a fairly high rate -- 10 KHz and higher. The
problem is, will I get increment problem at the limit of atomic_t or
will it wrap around without error? I read the docs (man pages, on-line
api docs, this list and other stuff) and none of them talk about the
behavior of atomic_t at the boundaries. Furthermore, am I guaranteed of
any boundary behavior across platforms?
Thank you in advance for any and all help.
-- Al Niessner <Al.Niessner@jpl.nasa.gov> Jet Propulsion Laboratory All opinions stated above are mine and do not necessarily reflect those of JPL or NASA. ---- | dS | >= 0 ---- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Bartlomiej Zolnierkiewicz: "Re: [somewhat OT] binary modules agaaaain"
- Next in thread: Richard B. Johnson: "Re: atomic_t and atomic_inc"
- Reply: Richard B. Johnson: "Re: atomic_t and atomic_inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]