diff options
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 |