Re: volatile and caches

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

 



> So volatile by itself gives nothing. In kernel you have to use barrier()
Not True. volatille is very usefull. 'jiffies' are volatile, and many
status registers variables for devices are volatile. Volatile means 'don't
trust the cached value, reread it.' Any variable that changes very fast or
very often should be volatile. The barrier() functions are used for
syncing caches on SMP boxes, I believe they do nothing on UP boxes, not
positive on this though.

Tom


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