memory order seq cst for atomics

Navin P navinp0304 at gmail.com
Fri Apr 2 10:45:12 EDT 2021


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20210402/b10344b7/attachment.html>


More information about the Kernelnewbies mailing list