login
Header Space

 
 

Re: use of volatile in iounmap()?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Sam Ravnborg <sam@...>
Cc: LKML <linux-kernel@...>, Ingo Molnar <mingo@...>
Date: Friday, March 28, 2008 - 4:51 pm

Sam Ravnborg wrote:

Yes.  The use of volatile in a function prototype like this means that 
it is valid to pass a volatile pointer to that function -- in other 
words, we're telling gcc that we're not going to do anything with the 
pointer that is invalid for a volatile pointer.

A lot of the "volatile considered harmful" stuff that has been bandied 
about is explicitly about marking *data* items volatile (it does have 
its uses, but it's easy to get wrong); Linus has explicitly made the 
distinction between volatile *data* and volatile *operations*.

	-hpa
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
use of volatile in iounmap()?, Sam Ravnborg, (Fri Mar 28, 4:34 pm)
Re: use of volatile in iounmap()?, Al Viro, (Fri Mar 28, 5:17 pm)
Re: use of volatile in iounmap()?, H. Peter Anvin, (Fri Mar 28, 4:51 pm)
Re: use of volatile in iounmap()?, Sam Ravnborg, (Fri Mar 28, 5:04 pm)
Re: use of volatile in iounmap()?, H. Peter Anvin, (Fri Mar 28, 5:07 pm)
speck-geostationary