lkml.org 
[lkml]   [2005]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [QUESTION] Why isn't there a unregister_die_notifier?
From
Date
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-08-18 18:35    [W:0.031 / U:0.164 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site