Rex::Co...::Kernel(3)
okay bestie, you're reading Rex::Co...::Kernel(3) from the User Contributed Perl Documentation crew, and it's giving kernel-module management realness π«Άβ¨
πΈ NAME πΈ
Rex::Commands::Kernel β Load/Unload Kernel Modules
π¦ DESCRIPTION π¦
okay so with this module you can load and unload kernel modules. periodt. π
tiny but important vibe check: Version <= 1.0 β all these functions will not be reported. like, not reported at all, bestie π
also highkey crucial: all these functions are not idempotent. fr fr, keep that in mind π
β¨ SYNOPSIS β¨
the whole energy is literally this:
kmod load => "ipmi_si";
kmod unload => "ipmi_si";
π EXPORTED FUNCTIONS π
π kmod($action => $module) π
This function loads or unloads a kernel module. that's the assignment, and it ate π₯
task "load", sub {
kmod load => "ipmi_si";
};
task "unload", sub {
kmod unload => "ipmi_si";
};
if you're using NetBSD or OpenBSD you have to specify the complete path and, if needed, the entry function. no shortcuts there π
task "load", sub {
kmod load => "/usr/lkm/ntfs.o";
kmod load => "/path/to/module.o", entry => "entry_function";
};
this page comes from perl v5.42.3, dated 2023-08-05, and it's Rex::Co...::Kernel(3) β bye bestie, go load/unload responsibly πβ¨π
π¦ where this page comes from
- nixos 26.05: perl5.42.3-Rex 1.14.3
- nixpkgs unstable: perl5.42.3-Rex 1.14.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms