Module Name:    src
Committed By:   pgoyette
Date:           Sat Aug  6 00:30:57 UTC 2016

Modified Files:
        src/doc: TODO.modules

Log Message:
Expand discussion a bit, and provide ppp as an example way to do things.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/doc/TODO.modules

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/doc/TODO.modules
diff -u src/doc/TODO.modules:1.4 src/doc/TODO.modules:1.5
--- src/doc/TODO.modules:1.4	Fri Aug  5 04:21:01 2016
+++ src/doc/TODO.modules	Sat Aug  6 00:30:57 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: TODO.modules,v 1.4 2016/08/05 04:21:01 pgoyette Exp $ */
+/* $NetBSD: TODO.modules,v 1.5 2016/08/06 00:30:57 pgoyette Exp $ */
 
 Some notes on the limitations of our current (as of 7.99.35) module
 subsystem.  This list was triggered by an Email exchange between
@@ -16,7 +16,14 @@ christos and pgoyette.
 
 	There are ways around this (such as, having the parent
 	module's initialization command recursively call the module
-	load code), but they're gross hacks.
+	load code), but they're often gross hacks.
+
+	Another alternative (which is used by ppp) is to provide a
+	"registration" mechanism for the "child" modules, and then when
+	the need for a specific child module is encountered, use
+	module_autoload() to load the child module.  Of course, this
+	requires that the parent module know about all potentially
+	loadable children.
 
 2. Currently, config(1) has no way to "no define" drivers
 

Reply via email to