Rex::Co...::Kernel(3)

πŸ“¦ version 1.14.3, in nixos 26.05, nixpkgs unstable

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