kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: miloody@gmail.com (loody)
To: kernelnewbies@lists.kernelnewbies.org
Subject: In SMP system, is there any api to disable IRQ for all CPUs?
Date: Thu, 1 Oct 2015 23:49:48 +0800	[thread overview]
Message-ID: <CANudz+u2euW1WN=jaUhM0n01sVc6P_8t+mzRjSgmDM5cTiYubw@mail.gmail.com> (raw)

hi all:
is there any kernel API can let IRQ disable for all CPU in SMP system
for a while?
I just need it for a experiment on my module.

such as:
xxxx      --> disable SMP all cpu IRQ
  OOO   ---> no interrupt happen
  OOO   ---> no interrupt happen
zzzz      ---> enable SMP all cou IRQ

Appreciate your kind help in advance,

             reply	other threads:[~2015-10-01 15:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01 15:49 loody [this message]
2015-10-02  2:01 ` In SMP system, is there any api to disable IRQ for all CPUs? Rik van Riel

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='CANudz+u2euW1WN=jaUhM0n01sVc6P_8t+mzRjSgmDM5cTiYubw@mail.gmail.com' \
    --to=miloody@gmail.com \
    --cc=kernelnewbies@lists.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).