aboutsummaryrefslogtreecommitdiff
path: root/sbin/kldunload
Commit message (Collapse)AuthorAgeFilesLines
* Bump a date in .Dd field. Last change brought some new functionality.Wojciech A. Koszek2006-02-271-1/+1
| | | | | | | | | Spotted by: brueffer Approved by: cognet (mentor) MFC after: 1 week Notes: svn path=/head/; revision=156093
* Extend kldunload(8) functionality and fix minor problems:Wojciech A. Koszek2006-02-273-40/+50
| | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=156091
* Big style(9) fix. This commit brings no functional change.Wojciech A. Koszek2006-02-271-53/+56
| | | | | | | | Approved by: cognet (mentor) MFC after: 1 week Notes: svn path=/head/; revision=156087
* - Correctly spell MOD_QUIESCEGleb Smirnoff2005-02-091-1/+3
| | | | | | | | | - use .Dv for it MFC after: 3 days Notes: svn path=/head/; revision=141593
* Document -f in usage().Ruslan Ermilov2005-01-301-2/+2
| | | | Notes: svn path=/head/; revision=141055
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-5/+2
| | | | Notes: svn path=/head/; revision=140368
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-101-6/+4
| | | | Notes: svn path=/head/; revision=139987
* Give kldunload a -f(orce) argument.Poul-Henning Kamp2004-07-132-2/+13
| | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=132117
* Use __FBSDID() to quiet GCC 3.3 warnings.David E. O'Brien2003-05-031-4/+2
| | | | Notes: svn path=/head/; revision=114589
* style(9): use NULL when assigning/comparing a char *,Johan Karlsson2003-04-231-5/+5
| | | | | | | | | consitently compare fileid with 0 using == and !=. Reviewed by: silence on @audit Notes: svn path=/head/; revision=113936
* Make this WARNS=5 clean by adding () in 'if (a || (b && c))'.Johan Karlsson2003-04-232-2/+2
| | | | | | | Look at by: sebastian.ssmoller@web.de on audit@ Notes: svn path=/head/; revision=113935
* The .Nm utilityPhilippe Charnier2002-07-061-1/+1
| | | | Notes: svn path=/head/; revision=99501
* Default to WARNS=2.David E. O'Brien2001-12-041-0/+1
| | | | | | | | | Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike Notes: svn path=/head/; revision=87325
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79530
* Removed -I${.CURDIR}/.../sys from CFLAGS.Ruslan Ermilov2001-05-181-2/+0
| | | | Notes: svn path=/head/; revision=76812
* - Backout botched attempt to introduce MANSECT feature.Ruslan Ermilov2001-03-261-0/+1
| | | | | | | - MAN[1-9] -> MAN. Notes: svn path=/head/; revision=74815
* Set the default manual section for sbin/ to 8.Ruslan Ermilov2001-03-201-2/+0
| | | | Notes: svn path=/head/; revision=74531
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-2/+2
| | | | Notes: svn path=/head/; revision=68960
* Fixed bitrot in usage message (-n is now optional).Bruce Evans1999-09-081-1/+1
| | | | Notes: svn path=/head/; revision=51074
* Show that the -n option is optionalNick Hibma1999-09-061-1/+4
| | | | | | | | Suggested by: Bruce Evans <bde@zeta.org.au> Reviewed by: dfr Notes: svn path=/head/; revision=51006
* Add cross-references to respective syscalls.Chris Costello1999-09-031-0/+1
| | | | Notes: svn path=/head/; revision=50847
* $Id$ -> $FreeBSD$Peter Wemm1999-08-283-3/+3
| | | | Notes: svn path=/head/; revision=50476
* Add a sensible message if an invalid ID was enteredNick Hibma1999-07-251-1/+3
| | | | | | | | | PR: 8739 Submitted by: Love lha@stacken.kth.se Reviewed by: Doug Rabson <doug@freebsd.org> Notes: svn path=/head/; revision=49079
* Fill-in the manpages a little.David E. O'Brien1998-11-121-3/+11
| | | | Notes: svn path=/head/; revision=41108
* Bitch if both an id and a name are specified. Make the man page and usageDag-Erling Smørgrav1998-11-072-6/+14
| | | | | | | | message reflect this. As a bonus, make the -n optional so that 'kldunload name' works as one would expect. Notes: svn path=/head/; revision=40981
* Lowercase 1st char. in err(3) strings.Philippe Charnier1998-07-061-2/+2
| | | | Notes: svn path=/head/; revision=37419
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.Philippe Charnier1998-03-191-3/+3
| | | | Notes: svn path=/head/; revision=34673
* Sync. usage string and synopsis. Add rcsid.Philippe Charnier1998-01-052-12/+13
| | | | Notes: svn path=/head/; revision=32270
* use += on cflagsJohn-Mark Gurney1997-10-261-2/+2
| | | | | | | Submitted-by: Steve Price <sprice@hiwaay.net> Notes: svn path=/head/; revision=30722
* fix mispelling of kldJohn-Mark Gurney1997-10-241-2/+2
| | | | Notes: svn path=/head/; revision=30684
* a few code style changes:John-Mark Gurney1997-10-212-21/+20
| | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=30627
* activate the programs that will be used to manipulate kld modulesJohn-Mark Gurney1997-10-192-2/+9
| | | | | | | | | | | 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) :) Notes: svn path=/head/; revision=30573
* Add utilities for the kernel linker.Doug Rabson1997-05-073-0/+185
Notes: svn path=/head/; revision=25540