volatile and caches

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

 




Does a volatile variable never reside in cache? Does that mean that
when a volatile variable is accessed, nothing is stuck in cache, even the 
areas of memory that are spatially local to it?


for instance:

struct _test{

   volatile x;
   char arr[1024];


}test;

if I use x, will the first part
of the arr string get read into cache or not?


Anton
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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