History log of /freebsd-10.1-release/sbin/kldunload/kldunload.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 156091 27-Feb-2006 wkoszek

Extend kldunload(8) functionality and fix minor problems:
o multiple modules can be unloaded at once (specified either by id or be
module name)
o exit with EX_USAGE after usage() is called.
o remove unused variables, since we keep command line flags as bitmask,
in 'opt'.
o 'kldload -n ...' does nothing. Add comment to this options.

Additionally:
o Update manual page to conform new functionality.
o Increace WARNS to 6. Because we can.

Approved by: cognet (mentor)
MFC after: 1 week


# 156087 27-Feb-2006 wkoszek

Big style(9) fix. This commit brings no functional change.

Approved by: cognet (mentor)
MFC after: 1 week


# 141055 30-Jan-2005 ru

Document -f in usage().


# 132117 13-Jul-2004 phk

Give kldunload a -f(orce) argument.

Add a MOD_QUIESCE event for modules. This should return error (EBUSY)
of the module is in use.

MOD_UNLOAD should now only fail if it is impossible (as opposed to
inconvenient) to unload the module. Valid reasons are memory references
into the module which cannot be tracked down and eliminated.

When kldunloading, we abandon if MOD_UNLOAD fails, and if -force is
not given, MOD_QUIESCE failing will also prevent the unload.

For backwards compatibility, we treat EOPNOTSUPP from MOD_QUIESCE as
success.

Document that modules should return EOPNOTSUPP for unknown events.


# 114589 03-May-2003 obrien

Use __FBSDID() to quiet GCC 3.3 warnings.


# 113936 23-Apr-2003 johan

style(9): use NULL when assigning/comparing a char *,
consitently compare fileid with 0 using == and !=.

Reviewed by: silence on @audit


# 113935 23-Apr-2003 johan

Make this WARNS=5 clean by adding () in 'if (a || (b && c))'.

Look at by: sebastian.ssmoller@web.de on audit@


# 51074 08-Sep-1999 bde

Fixed bitrot in usage message (-n is now optional).


# 50476 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 49079 25-Jul-1999 n_hibma

Add a sensible message if an invalid ID was entered

PR: 8739
Submitted by: Love lha@stacken.kth.se
Reviewed by: Doug Rabson <doug@freebsd.org>


# 40981 06-Nov-1998 des

Bitch if both an id and a name are specified. Make the man page and usage
message reflect this. As a bonus, make the -n optional so that 'kldunload
name' works as one would expect.


# 37419 06-Jul-1998 charnier

Lowercase 1st char. in err(3) strings.


# 32270 05-Jan-1998 charnier

Sync. usage string and synopsis. Add rcsid.


# 30684 24-Oct-1997 jmg

fix mispelling of kld


# 30627 21-Oct-1997 jmg

a few code style changes:
o start function names in column 1
o sort order of flags in getopt and switch
o don't try to reference progname
o unspam some changes introduced by a 2.2.1-R build box instead of a
-current build box

doc changes:
o document when these commands first appeared
o put email address in angle brakets
o minor mdoc clean up


# 30573 19-Oct-1997 jmg

activate the programs that will be used to manipulate kld modules

fix a few problems with missing headers, warn called with an exit
value, and undeclared getopt vars

these programs now compile -Wall clean (and yes, I know I should use
more than just -Wall) :)


# 25540 07-May-1997 dfr

Add utilities for the kernel linker.