* [PATCH] SET_MODULE_OWNER comment
@ 2003-04-18 7:23 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2003-04-18 7:23 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel, trivial
Re-xmit. This should clarify when to use SET_MODULE_OWNER: some
people thought it was the One True Way to do the owner assignment.
Linus, pleae apply.
Rusty.
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal linux-2.5.67-bk1/include/linux/module.h working-2.5.67-bk1-set-owner/include/linux/module.h
--- linux-2.5.67-bk1/include/linux/module.h 2003-04-08 11:15:01.000000000 +1000
+++ working-2.5.67-bk1-set-owner/include/linux/module.h 2003-04-09 15:15:47.000000000 +1000
@@ -408,6 +408,12 @@ __attribute__((section(".gnu.linkonce.th
#endif /* MODULE */
#define symbol_request(x) try_then_request_module(symbol_get(x), "symbol:" #x)
+
+/* If you want backwards compat: some structs didn't have owner fields once */
+/* Think of SET_MODULE_OWNER like an IBM mainframe: leave it in a dark
+ corner for years, don't break it, but don't ever upgrade it either :)
+ If there is something newer and sexier than the mainframe, it's ok to
+ use that instead. The mainframe won't feel lonely. -- Jeff Garzik */
#define SET_MODULE_OWNER(dev) ((dev)->owner = THIS_MODULE)
/* BELOW HERE ALL THESE ARE OBSOLETE AND WILL VANISH */
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-04-18 7:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-18 7:23 [PATCH] SET_MODULE_OWNER comment Rusty Russell
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®