[−][src]Function nix::kmod::delete_module
pub fn delete_module(name: &CStr, flags: DeleteModuleFlags) -> Result<()>
Unloads the kernel module with the given name.
Example
use std::ffi::CString; use nix::kmod::{delete_module, DeleteModuleFlags}; delete_module(&CString::new("mymod").unwrap(), DeleteModuleFlags::O_NONBLOCK).unwrap();
See man delete_module(2)
for more information.