memory order seq cst for atomics
April 2, 2021
2:45 p.m.
Hi, C11 and c++11 have memory order like memory_order_seq_cst .What is the equivalent in Linux kernel ? atomic64_inc(&var) ; __SMP_mb(); Regards, Navin
April 2, 2021
3:09 p.m.
On Fri, Apr 02, 2021 at 08:15:12PM +0530, Navin P wrote:
Hi, C11 and c++11 have memory order like memory_order_seq_cst .What is the equivalent in Linux kernel ? atomic64_inc(&var) ; __SMP_mb();
Please read Documentation/memory-barriers.txt in the kernel source tree. It should answer all of your questions regarding this. good luck! greg k-h
1960
Age (days ago)
1960
Last active (days ago)
1 comments
2 participants
participants (2)
-
Greg KH -
Navin P