LIBRARY
Lb libcSYNOPSIS
In sys/param.h In sys/linker.h Ft int Fn kldunload int fileid Ft int Fn kldunloadf int fileid int flagsDESCRIPTION
The Fn kldunload system call unloads a kld file from the kernel that was previously linked via kldload(2).The Fn kldunloadf system call accepts an additional flags argument, which may be one of LINKER_UNLOAD_NORMAL giving the same behavior as Fn kldunload , or LINKER_UNLOAD_FORCE which causes the unload to ignore a failure to quiesce the module.
RETURN VALUES
Rv -stdERRORS
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.
- Bq Er EINVAL
- The Fn kldunloadf system call was passed invalid flags.
HISTORY
The kld interface first appeared in Fx 3.0 .