Re: __read_mostly

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

 



Hi Peter...

On Mon, Apr 12, 2010 at 22:59, Peter Teoh <htmldeveloper@xxxxxxxxx> wrote:
> I think u are right too....
>
> From here is the definition:
>
> arch/x86/include/asm/cache.h:
> #define __read_mostly __attribute__((__section__(".data.read_mostly")))
>
> and then the location is defined in the LDS linker script
> (arch/x86/kernel/vmlinux.lds):
>
>  CONSTRUCTORS
>  /* rarely changed data like cpu maps */
>  . = ALIGN((1 << 6)); *(.data.read_mostly)
>  /* End of data section */
>  _edata = .;
>  } :data
>
> which defined how vmlinux is created.

As always, I owe you much for explaining things I hardly get the exact
answer. Thanks a lot :)

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
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