diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-03-10 09:54:13 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-03-10 09:54:13 +0000 |
commit | 72cc21ea73b1a347f334673ff472ea5680815715 (patch) | |
tree | 6a0495cab5499561bc18371f4917af065e495650 /lib/libc | |
parent | e53ae3b7988658d21fe97864dee33838e281ea58 (diff) | |
download | FreeBSD-src-72cc21ea73b1a347f334673ff472ea5680815715.zip FreeBSD-src-72cc21ea73b1a347f334673ff472ea5680815715.tar.gz |
Add reference to kldunloadf system call, which was previously not
mentioned in the kldunload(2) man page.
MFC after: 3 days
Spotted by: rink
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/Makefile.inc | 1 | ||||
-rw-r--r-- | lib/libc/sys/kldunload.2 | 15 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lib/libc/sys/Makefile.inc b/lib/libc/sys/Makefile.inc index fe17d7d..6e8f750 100644 --- a/lib/libc/sys/Makefile.inc +++ b/lib/libc/sys/Makefile.inc @@ -134,6 +134,7 @@ MLINKS+=getuid.2 geteuid.2 MLINKS+=intro.2 errno.2 MLINKS+=jail.2 jail_attach.2 MLINKS+=kqueue.2 kevent.2 +MLINKS+=kldunload.2 kldunloadf.2 MLINKS+=kse.2 kse_create.2 kse.2 kse_exit.2 kse.2 kse_release.2 \ kse.2 kse_switchin.2 kse.2 kse_thr_interrupt.2 kse.2 kse_wakeup.2 MLINKS+=madvise.2 posix_madvise.2 diff --git a/lib/libc/sys/kldunload.2 b/lib/libc/sys/kldunload.2 index ef6282b..f42df42 100644 --- a/lib/libc/sys/kldunload.2 +++ b/lib/libc/sys/kldunload.2 @@ -25,11 +25,12 @@ .\" .\" $FreeBSD$ .\" -.Dd March 3, 1999 +.Dd March 10, 2008 .Dt KLDUNLOAD 2 .Os .Sh NAME .Nm kldunload +.Nm kldunloadf .Nd unload kld files .Sh LIBRARY .Lb libc @@ -38,12 +39,24 @@ .In sys/linker.h .Ft int .Fn kldunload "int fileid" +.Ft int +.Fn kldunload "int fileid" "int flags" .Sh DESCRIPTION The .Fn kldunload system call unloads a kld file from the kernel that was previously linked via .Xr kldload 2 . +.Pp +The +.Fn kldunloadf +system call accepts an additional flags argument, which may be one of +.Dv LINKER_UNLOAD_NORMAL , +giving the same behavior as +.Fn kldunload , +or +.Dv LINKER_UNLOAD_FORCE , +which causes the unload to ignore a failure to quiesce the module. .Sh RETURN VALUES .Rv -std .Sh ERRORS |