diff options
author | Pascal Bach <pascal.bach@nextrem.ch> | 2018-07-20 21:59:16 +0200 |
---|---|---|
committer | Pascal Bach <pascal.bach@nextrem.ch> | 2018-09-05 22:01:40 +0200 |
commit | a7fea44fe38b61a65ebc2d840c4c6c9e1bd8431d (patch) | |
tree | efd7d1a498b8e9344452ba20d309751f441750e4 /src/lib.rs | |
parent | 81088abb3e257086f7dfc5810a363d28fea05706 (diff) | |
download | nix-a7fea44fe38b61a65ebc2d840c4c6c9e1bd8431d.zip |
Add wrapper for linux kernel module loading
- init_module and finit_module to load kernel modules
- delete_module to unload kernel modules
Signed-off-by: Pascal Bach <pascal.bach@nextrem.ch>
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -43,7 +43,11 @@ pub mod fcntl; target_os = "netbsd", target_os = "openbsd"))] pub mod ifaddrs; -#[cfg(any(target_os = "linux", target_os = "android"))] +#[cfg(any(target_os = "android", + target_os = "linux"))] +pub mod kmod; +#[cfg(any(target_os = "android", + target_os = "linux"))] pub mod mount; #[cfg(any(target_os = "dragonfly", target_os = "freebsd", @@ -57,7 +61,8 @@ pub mod net; pub mod poll; #[deny(missing_docs)] pub mod pty; -#[cfg(any(target_os = "linux", target_os = "android"))] +#[cfg(any(target_os = "android", + target_os = "linux"))] pub mod sched; pub mod sys; // This can be implemented for other platforms as soon as libc |