__read_mostly

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

 



static struct hlist_head *inode_hashtable __read_mostly;


what is the use of  __read_mostly ?

I did not find any detailed documentation for this
on GCC  website , Is it GCC optimization feature ?



Only thing I learnt is that It is used in SMP system
in that , given only reads , each processor can cache
copy of these kind of variables however if a write occurs,
one processor assumes ownership of that general memory
area and this is a very expensive operation ..... ( cache bouncing ...)
??
Is this the correct use of these variables ???

Regards,
onkar

[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