Commit Graph

124 Commits

Author SHA1 Message Date
mrg 1e8d1e7cf5 call it "kernel object linker module framework" not just
"module framework".  the latter is generic enough to
also mean the old ld(1) linked loadable kernel modules.
2021-01-17 00:17:40 +00:00
thorpej d147ce2226 Update for proplib(3) API changes. 2020-06-07 05:42:25 +00:00
uwe 22cb993c0d Make -f description actually use the word "force" so that it can be
found when searched for.
2020-06-01 03:18:36 +00:00
wiz d3d1d19dfa Fix Dt argument. 2017-07-18 19:50:54 +00:00
christos cf30cbf155 PR/52417: Edgar Pettijohn: modules.conf(5) not mentioned in related manuals 2017-07-18 13:00:00 +00:00
wiz 31ba559526 Add .An -nosplit. 2016-09-12 06:52:59 +00:00
sevan ed434347cc Document the version modload appeared and authors.
Correct spelling mistakes.
Bump date.
2016-09-12 00:03:01 +00:00
sevan 51fe790c4c Drop main() prototype. 2016-09-05 01:00:07 +00:00
khorben 3df9a0e8ab More friendly error messages for modload(8) and modunload(8)
Tested on NetBSD/amd64.

From Christian Koch (cfkoch@) of EdgeBSD; thanks!
2016-05-06 00:24:45 +00:00
pgoyette e6045f6364 Add cross-refs from modload(8) amd modunload(8) to modctl(2) 2015-11-28 23:53:48 +00:00
dholland b062143a54 WARNS=5 is the default in sbin, don't need to set it explicitly. 2013-08-11 05:56:55 +00:00
apb 2f2c48e223 Don't pass NULL to prop_dictionary_set.
Coverity CID 275196.
2013-02-07 12:04:01 +00:00
jnemeth 0f1ee6e9e1 Set WARNS=5. No warnings/errors were found with a test compile. 2012-08-22 07:47:18 +00:00
wiz 661fd131c6 Quote path separator character. 2011-08-06 08:43:28 +00:00
mbalmer d1912e7839 Do not not look for modules in the current working directory first. This is
to prevent from accidentally loading ./module.kmod when we actually wanted to
load module from the system module area.

To load a module from a filesystem path, the module name must contain at
least on path separator character (/), to load a module from the system
module areas, the name must not contain a path separator character:

modload ./mymod.kmod      # loads mymod.kmod from the curren directory
modload mymod             # loads mymod.kmod from the system module area
2011-08-06 08:11:09 +00:00
jruoho 91e230c6b8 Fix xref; module(4) -> module(7). 2010-12-14 16:23:59 +00:00
pooka 67a4f392d8 use crunchops for crunchables 2010-12-13 21:48:01 +00:00
pooka e73ffdda13 Add rump client support for module utilities. It should be noted
that while modstat and modunload and builtin modules work exactly
the same as in the host case, modload loads file system kernel
modules from the rump kernel namespace.  By default, archs which
have rump support for the kernel kernel ABI have the host module
directory mapped into the rump kernel namespace at the same location
(/stand/...).  Therefore, if the *host* module directory is populated,
"rump.modload foo" will work as expected.  Otherwise, RUMP_MODULEBASE
can be used to point to the module directory.
2010-12-13 20:48:44 +00:00
jruoho 05a9f55544 Xref module(4). 2010-12-13 10:07:46 +00:00
pooka 696ffdd08a note module changes 2010-03-05 18:51:22 +00:00
wiz bba67e2c66 Sync usage with man page. 2009-06-11 08:12:00 +00:00
wiz d28fa3c589 Remove -P from -p section, not from -f one. 2009-06-11 08:11:52 +00:00
jnemeth 59cc9994df -p -P doesn't make much sense since no module will be loaded. 2009-06-10 03:30:32 +00:00
jnemeth cbd3656645 Add the MODCTL_NO_PROP flag to tell the kernel to ignore <module>.prop.
Add the '-P' option to modload(8) to set this flag.
2009-06-09 20:35:02 +00:00
jnemeth 5ce0121eaa Add a new [-d var] option which when combined with -p and -m will allow
you to delete vars from the existing <module>.prop file.
2009-06-05 11:37:30 +00:00
wiz 0246bc0bc2 Sort options. 2009-06-05 09:31:07 +00:00
jnemeth 3ee4fdb595 Add a "-m plist" option. This option will read in an existing
<module>.prop file and merge any options supplied on the "command
line".

This code will serve as the basis for in-kernel merging.
2009-06-04 02:57:01 +00:00
jnemeth 3431c6b695 fputs() instead of puts() so we don't get the silly extra blank line 2009-05-19 22:55:24 +00:00
wiz 04c4f4a1d1 Sync usage and man page. 2009-05-19 22:39:52 +00:00
wiz d4f65fc8c5 Sort option descriptions. Split usage in SYNOPSIS in two, since there
are two different methods of calling it.
Add arguments to option descriptions.
2009-05-19 22:35:41 +00:00
jnemeth 47371f5f63 Add -p option which outputs a property list suitable for loading with a
module.  This is in preparation for having the kernel load an optional
<module>.prop alongside a module, which is useful for passing options
to autoloaded modules and modules loaded at boot time.
2009-05-19 22:09:59 +00:00
uwe 2b5d806dfe Punctuation formatting nit. 2008-11-17 02:32:09 +00:00
ad 0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
jmmv 9e8fd365e9 Add the ability to specify load-time properties for modules. This adds
three new flags to the new modload utility: -b, -i and -s, which are used
to pass boolean, integer and string parameters respectively.
2008-03-02 11:20:59 +00:00
jmmv be1e5d770b Always test MKMODULAR with != "no". Requested by mrg@. 2008-02-10 08:21:25 +00:00
jmmv 97f434a8b4 Reverse MKMODULAR checks. 2008-02-09 22:32:38 +00:00
jmmv 8983cf2933 Recognize MKMODULAR and build the appropriate tool. 2008-02-09 19:33:00 +00:00
ad bbc79e58a6 Pull in my modules code for review/test/hacking. 2008-01-16 12:34:50 +00:00
ross a75e5e7741 Replace complicated test for ELFSIZE 64 with #ifdef _LP64 which is
the netbsd convention. Rig the old test temporarily to a #error
sanity check.
2006-07-08 05:49:01 +00:00
reed f21a315136 In the DIAGNOSTICS section, document that mismatched LKM and kernel
versions will be reported to the console and to the system message
buffer.

And update documentation date.
2006-03-24 00:38:23 +00:00
rumble e948e1b17f Check for allocation failures in malloc, calloc, realloc, asprintf, and
vasprintf and try to handle them.
2006-03-17 15:53:46 +00:00
christos 2c6eadc9ce Move WARNS=3 to the Makefile.inc, and add a little const to the remaining
programs that did not compile before.
2005-06-27 01:00:04 +00:00
matt 0e46a38f38 Terminate variable argument list with NULL, not 0. 2005-04-25 01:33:03 +00:00
perry 5c9f370160 remove obsolete "register" declarations. 2005-02-06 06:13:47 +00:00
peter 0d5d8e993a Fix a typo in a comment. 2004-10-27 19:36:31 +00:00
jrf 190b2e4c51 Replaced strncpy with strlcpy. Thanks to Peter Postma who
pointed them our in PR #25762. Approved by christos@NetBSD.org.
2004-09-07 13:20:39 +00:00
nathanw fa3249e24a Remove an extraneous comment before main() that seems to have been
accidentally cut-and-pasted in with rev 1.30.
2004-06-28 19:27:06 +00:00
cjep 9c1d6b6c10 Put -T in usage output. PR#25875 from Kouichirou Hiratsuka. 2004-06-08 19:25:16 +00:00
wiz 080a1b9108 Remove superfluous TRUE and FALSE definitions.
Noted by Jeff Ito in PR 24845.
2004-03-19 12:04:37 +00:00