kldunload (8) ( FreeBSD man: Команды системного администрирования )
BSD mandoc
NAME
kldunloadkldunloadf
- unload kld files
LIBRARY
Lb libc
SYNOPSIS
#include <sys/param.h>
#include <sys/linker.h> int
kldunload (int fileid); int
kldunload (int fileid int flags);
DESCRIPTION
The
kldunload ();
system call
unloads a kld file from the kernel that was previously linked via
kldload(2).
The
kldunloadf ();
system call accepts an additional flags argument, which may be one of
LINKER_UNLOAD_NORMAL
giving the same behavior as
kldunload (,);
or
LINKER_UNLOAD_FORCE
which causes the unload to ignore a failure to quiesce the module.
RETURN VALUES
Rv -std
ERRORS
The file referred to by
Fa fileid
is unloaded unless:
Bq Er EPERM
You do not have access to unlink the file from the kernel.
Bq Er ENOENT
The file was not found.
Bq Er EBUSY
You attempted to unload a file linked by the kernel.