Re: user-mode port 0.44-2.4.7

From: Linus Torvalds (
Date: Mon Jul 23 2001 - 17:53:38 EST

On Mon, 23 Jul 2001, Chris Friesen wrote:
> If I understand correctly, xtime is updated asynchronously. If it isn't, then
> ignore this message totally. However, if it is, then *not* specifying it as
> volatile could easily cause problems in technically correct but poorly written
> code.


Adding "volatile" often helps poorly written code.

In fact, the one AND ONLY reason to add volatile to data structures is in
fact poorly written code.

Now, think about that for a minute, and maybe you'll understand why I
don't want more volatiles in the kernel.


PS. This has come up before. The old pre-Alan networking code had
"volatile" on just about every single network data structure. Every damn
single one of them was a bug. Without exception.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Mon Jul 23 2001 - 21:00:17 EST