Search code examples
linuxlinux-kerneldependenciesmemory-barrierssmp

What is data-dependency barrier: Linux Kernel


As question says it all I was looking for in depth explanation of data-dependency barrier in SMP especially with respect to Linux Kernel. I have the definition and brief description handy in this link here.

Linux Kernel Memory Barriers Documentation

However I was attempting to get a profound understanding of this concept. Your thoughts and inputs are highly appreciated.


Solution

  • Old answer: I believe "acquire semantics" is the more commonly used term for what the document is calling a "data-dependency barrier". See for example this presentation or the C++11 memory_order_acquire.

    Update: per comments, the Linux description for Data Dependency Barriers sounds more like C++ "consume semantics".