login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
March
»
28
Re: use of volatile in iounmap()?
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
H. Peter Anvin <hpa@...>
To: Sam Ravnborg <sam@...>
Cc: LKML <linux-kernel@...>, Ingo Molnar <mingo@...>
Subject:
Re: use of volatile in iounmap()?
Date: Friday, March 28, 2008 - 5:07 pm
Sam Ravnborg wrote:
quoted text
>>> >> 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.
quoted text
> If I understand you correct then it is then not wrong to say > that we have the argument volatile to avoid warnings from gcc > when we pass a volatile pointer. > > And then having the pointer marked volatile put a few restrictions > on iounmap().
Correct.
quoted text
>> 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*. > > Yes - but unfortunately the volatile-considered-harmful.txt > does many deal with the data part.
Yes, it does. -hpa --
unsubscribe notice
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/
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)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
monstr
[PATCH 27/56] microblaze_v2: support for a.out
Andrew Morton
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
mdew .
Re: [patch] CFS scheduler, v4
Gabriel C
Re: 2.6.21-mm1
git
:
linux-netdev
:
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Willy Tarreau
Re: [PATCH] tcp: splice as many packets as possible at once
Linus Torvalds
Re: [GIT]: Networking
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
14 users
and
989 guests
online.
Online users
strcmp
zeekec
dataentryemplo
bacterialyeast
reflectivetpey
freebabysample
boschdiswasher
baskettime94
manuelacraigvz
go24kt
JohnSwem123
expertseoservi
johncharretier
leatherlingeri
Syndicate