Add reference to kldunloadf system call, which was previously not

mentioned in the kldunload(2) man page.

MFC after:	3 days
Spotted by:	rink
This commit is contained in:
Robert Watson 2008-03-10 09:54:13 +00:00
parent 7217d8d1ee
commit 4813b6af4b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=177012
2 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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