Re: Significance of __iomem"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <arjun.joshi@xxxxxxxxxxxxxx>:
> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux