Copyright (c) 1999 Chris Costello All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or oth...
NAMEkldunload , kldunloadf - unload kld files
SYNOPSISIn sys/param.h In sys/linker.h Ft int Fn kldunload int fileid Ft int Fn kldunloadf int fileid int flags
DESCRIPTIONThe 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 VALUESRv -std
ERRORSThe 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.