summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/kldunload.2
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2008-03-10 09:54:13 +0000
committerrwatson <rwatson@FreeBSD.org>2008-03-10 09:54:13 +0000
commit72cc21ea73b1a347f334673ff472ea5680815715 (patch)
tree6a0495cab5499561bc18371f4917af065e495650 /lib/libc/sys/kldunload.2
parente53ae3b7988658d21fe97864dee33838e281ea58 (diff)
downloadFreeBSD-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/sys/kldunload.2')
-rw-r--r--lib/libc/sys/kldunload.215
1 files changed, 14 insertions, 1 deletions
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
OpenPOWER on IntegriCloud