On Thu, 2003-05-08 at 09:24, Jirka Kosina wrote: > > Can anyone please explain me what is the meaning of the keyword > > "volatile" in the kernel code > > It is a hint to compiler not to do some optimizations with this variable, > because it might change from outside of the current code. More specifically, it is a _requirement_ to the compiler that it always reload the variable from memory on access and that it not alias the variable in a register, because of the assumption that the variable is capable of changing out from under it. Robert Love -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/