lkml.org 
[lkml]   [2004]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: atomic_t and atomic_inc
Richard B. Johnson wrote:
> Type atomic_t is an integer that can be accessed in memory
> with an uninterruptible instruction. This limits the atomic_t
> type in 32-bit machines to 32-bits, in 64-bit machines to 64-bits,
> etc. It has nothing to do with wrap-around. If you increment
> 0xffffffff it becomes 0 even it it's an atomic type.

Note that atomic_t used to be 24 bits on Sparc. It isn't any more, though.

-- Jame
-
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/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.037 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site