Commit Graph

104 Commits

Author SHA1 Message Date
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
kleink 888c4ead28 Update the change from rev. 1.42 to reflect that MAXPATH includes room
for the terminating NUL character.
2004-02-12 21:10:39 +00:00
jdolecek a09b055053 it's not correct to use MAXPATHNAME-sized buffer for link command, as
pointed out by Klaus Klein (original idea was that it should hold at least
the pathname ...); instead, let the ELF and a.out backends allocate memory
for the link command, and get rid of the fixed size buffer altogether
2004-02-11 18:42:37 +00:00
jdolecek b69e6f038b use MAXPATHLEN-sized buffer for module paths
reported and fix provided in bin/24379 by Nicolas Joly
2004-02-10 12:30:22 +00:00
fvdl d9495c6d9a Don't compare an integer to NULL. 2003-10-21 02:31:08 +00:00
wiz 495a82c52c New sentence, new line; improve grammar. 2003-09-06 20:09:26 +00:00
jdolecek ade4df3adc implement support for forced LKM load, which makes the kernel skip
the version checks, using new -f flag and LMFORCE ioctl

Hopefully the description in the manpage is discouraging enough so that
nobody would dare even _think_ of using forced loads. A warning
message is written to stderr when this is used, just in case.
2003-09-06 19:23:20 +00:00
itojun 354140d884 remove obsolete comment 2003-07-13 07:45:27 +00:00
itojun 59b2dcde2e asprintf() is easier than malloc + sprintf 2003-07-12 16:52:22 +00:00
ragge 46943c2cf6 Try first to use /dev/ksyms to get kernel symbols, if that fails mutter a
bit and fallback to the old way.
2003-04-24 20:18:31 +00:00
jdolecek 40d3f26f8c desupport LMRESERV_O, anything relying on it doesn't have chance of working
anyway due to numerous kernel structure changes
2003-04-11 07:49:31 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
grant c39c2e62d5 'NetBSD.org' and some mdoc fixes. 2003-02-14 16:21:47 +00:00
atatat 1784bd0a07 If no other name is specified, and machdep.booted_kernel is present
and names a file, use that as a the default kernel, otherwise fall
back to /netbsd.

Makes lkms work *much* better when you're testing kernels that are not
named /netbsd.
2003-02-09 23:29:32 +00:00
thorpej 3d3807182d Skip empty sections. From Allen Briggs. 2002-11-07 05:55:08 +00:00
simonb da75d51b40 Add support for using an optional linker script (/usr/lkm/ldscript if
found, and overridable by the -T option).
2002-10-10 01:57:10 +00:00
simonb 99f05800ca Use "type *" instead of "type*". 2002-10-07 02:33:55 +00:00
simonb c3bdd6ef09 ANSIfy, KNF, declare externs in headers only. 2002-10-06 13:23:00 +00:00
wiz 2fb4b1db52 New sentence, new line. By Robert Elz with minimal fixes. 2002-10-01 13:40:23 +00:00
lha 4fa2032edc uppercase the lkm kernel-userspace dev macros and prefix them with LKM_
make modload print the bdev and cdev major when its a dev lkm
2002-09-18 22:59:36 +00:00
gehenna b7c0e53f09 For loadable drivers, the 3rd argument is character device major and
the 4th argument is block device major.

Remove one item from BUGS section.
2002-09-13 15:32:21 +00:00