ENUM HW_PROTECTION_ACTION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

enum hw_protection_action β€” Hardware protection action. (hiii bestie, you're in the Kernel API Manual entry for enum hw_protection_action(9), and it's giving very demure, very kernel πŸ’…)

✨ SYNOPSIS ✨

okay so here's the whole enum, copied exactly, spaces and all:

       enum hw_protection_action {
           HWPROT_ACT_DEFAULT ,
           HWPROT_ACT_SHUTDOWN ,
           HWPROT_ACT_REBOOT

       };

πŸŽ€ Constants πŸŽ€

these are the three constants, and they are literally the whole menu:

  • HWPROT_ACT_DEFAULT β€” The default action should be taken. This is HWPROT_ACT_SHUTDOWN by default, but can be overridden. (so it's the "whatever the default is" choice, but not locked in forever 🫢)
  • HWPROT_ACT_SHUTDOWN β€” The system should be shut down (powered off) for HW protection. (powered off, no messing around πŸ’€)
  • HWPROT_ACT_REBOOT β€” The system should be rebooted for HW protection. (yep, full reboot for protection πŸ”₯)

🌈 SEE ALSO 🌈

Kernel file ./include/linux/reboot.h, plus struct sys_off_data(9) and hw_protection_trigger(9) β€” go peek at those, iykyk πŸ‘€


mwah πŸ’‹ β€” this page was sourced from ./include/linux, dated October 2026, and that's the whole enum hw_protection_action(9) vibe. periodt πŸ’–βœ¨

πŸ“¦ where this page comes from