mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Oeser <ingo.oeser@informatik.tu-chemnitz.de>
To: linux-kernel@vger.kernel.org
Subject: Can BUG() also be used "safely" in interrupts?
Date: Fri, 17 May 2002 09:01:40 +0200	[thread overview]
Message-ID: <20020517090139.G635@nightmaster.csn.tu-chemnitz.de> (raw)

Hi there,

I have a routine to be used in an ISR or BH, where I like to use
BUG(), to flag real bugs the caller produces, if he uses it with
wrong arguments (namely: check for asserted interrupts according
to a mask and flag an BUG(), if the mask is bogus).

So can BUG() be used in an ISR or BH?

Thanks & Regards

Ingo Oeser
-- 
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth

             reply	other threads:[~2002-05-17  7:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-17  7:01 Ingo Oeser [this message]
2002-05-17 14:27 ` Tommy Reynolds
2002-05-18 18:58   ` Ingo Oeser

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=20020517090139.G635@nightmaster.csn.tu-chemnitz.de \
    --to=ingo.oeser@informatik.tu-chemnitz.de \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®