i think this use to diff kernel space or user space or iomem  like cpu
ring 0 to ring 3.

include/Linux/compiler.h:
#ifdef __CHECKER__
# define __user __attribute__((noderef, address_space(1)))
# define __kernel /* default address space */
# define __iomem __attribute__((noderef, address_space(2)))
.......

BRs
lin

2009/4/23 Arjun Joshi <[email protected]>:
> Hi,
>
> I recently came across the below #define
>
> # define __iomem      __attribute__((noderef, address_space(2)))
>
> Browsing the internet I could find the following detail:
>
> "iomem" means two separate things: it means that sparse should complain
> if the pointer is ever dereferenced (it's a "noderef" pointer) directly,
> and it's in "address space 2" as opposed to the normal address space (0).
>
> My query : what does this address_space(2) or address_space(0) mean?
>
> Thanks in advance,
> Arjun
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to