Hi On Mon, Mar 9, 2009 at 9:08 AM, Mike Christie <michaelc@xxxxxxxxxxx> wrote: > Hi, > > I thought in older linux driver books and docs on the internet it said that > you should not rely on a atomic_t being a certain size, because in some > archs it may be different. > > However, in reading Documentation/atomic_ops.txt and articles like > http://lwn.net/Articles/71732/, it sounds like in current 2.6 kernels the > atomic_t is at least 32 bits. Is this correct, and can you safely write code > which assumes this? For 32 x86 processors, yes it's 32 bit. For IA-64, i think it should be 64 bit. Now, for x86-64, I am not sure whether it's 64 or 32. But all in all, for x86 family at least it's 32 bit. However, if your codes are going to be implemented on non x86, that need further research. Other people might help here. regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ