From: Navin P <navinp0304@gmail.com>
To: kernelnewbies <kernelnewbies@kernelnewbies.org>
Subject: memory order seq cst for atomics
Date: Fri, 2 Apr 2021 20:15:12 +0530 [thread overview]
Message-ID: <CALO2TqKd7QYSM55a78M2v0xjJfw+DVdo0RtB5JH_nfD3HzUMoQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 156 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 343 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next reply other threads:[~2021-04-02 14:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-02 14:45 Navin P [this message]
2021-04-02 15:09 ` memory order seq cst for atomics Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALO2TqKd7QYSM55a78M2v0xjJfw+DVdo0RtB5JH_nfD3HzUMoQ@mail.gmail.com \
--to=navinp0304@gmail.com \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.