Function nix::kmod::delete_module [−][src]
pub fn delete_module(name: &CStr, flags: DeleteModuleFlags) -> Result<()>
Expand description
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.