mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [QUESTION] Why isn't there a unregister_die_notifier?
Date: 18 Aug 2005 18:32:59 +0200	[thread overview]
Message-ID: <p73br3vtdc4.fsf@verdi.suse.de> (raw)
In-Reply-To: <1124377142.5186.45.camel@localhost.localdomain.suse.lists.linux.kernel>

Steven Rostedt <rostedt@goodmis.org> writes:

> Hi, I have a debugging module that I want to register a die notifier.
> But I just noticed that I can't unregister it.  So for now I either just
> keep the module loaded and never unloaded it, compile it into the
> kernel, or ifdef out the register_die_notifier when loaded as a module.
> 
> Is there some reason that there isn't such a call, or maybe there is,
> and I don't see it (called something else). Or is this something that
> should be added?

I didn't add one original because unloading debuggers is very tricky.
There is no locking and no reference counting and they can be entered
in any context.  Adding it would require some RCU tricks at least and
might still have some non trivial races.

-Andi

       reply	other threads:[~2005-08-18 16:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1124377142.5186.45.camel@localhost.localdomain.suse.lists.linux.kernel>
2005-08-18 16:32 ` Andi Kleen [this message]
2005-08-18 16:52   ` Steven Rostedt
2005-08-18 14:59 Steven Rostedt

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=p73br3vtdc4.fsf@verdi.suse.de \
    --to=ak@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rostedt@goodmis.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

Powered by JetHome