Skip to content

Commit

Permalink
deny missing docs in the kmod module (nix-rust#2292)
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers authored Jan 15, 2024
1 parent 1acc5e8 commit bfcb226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/kmod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ libc_bitflags!(
/// See [`man delete_module(2)`](https://man7.org/linux/man-pages/man2/delete_module.2.html)
/// for a detailed description how these flags work.
pub struct DeleteModuleFlags: libc::c_int {
/// `delete_module` will return immediately, with an error, if the module has a nonzero
/// reference count.
O_NONBLOCK;
/// `delete_module` will unload the module immediately, regardless of whether it has a
/// nonzero reference count.
O_TRUNC;
}
);
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ feature! {
#[cfg(linux_android)]
feature! {
#![feature = "kmod"]
#[allow(missing_docs)]
pub mod kmod;
}
feature! {
Expand Down

0 comments on commit bfcb226

Please sign in to comment.