hw_failure_...ncy_schedule(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hw_failure_emergency_schedule β€” Kernel API Manual ✨

okay bestie so we're deep in the kernel API manual today and the page we're on is hw_failure_...ncy_schedule(9) β€” yes the title is literally abbreviated with dots in the middle, that's just how the header rolls, it's giving truncated-slash-iconic πŸŽ€


🌸 NAME 🌸

hw_failure_emergency_schedule β€” schedule an emergency system shutdown or reboot πŸš¨πŸ’€


✨ SYNOPSIS ✨

void hw_failure_emergency_schedule (enum hw_protection_action action ,
int action_delay_ms );

like, that's the whole vibe. void, so it doesn't hand you anything back. it just does the thing. πŸ‘‘


🫢 ARGUMENTS 🫢

  • action β€” the hardware protection action that's gonna get taken. this is the main character of the whole call ngl.
  • action_delay_ms β€” the time in milliseconds to elapse before the action gets triggered. so it's not instant, it's fashionably late by exactly however many ms you told it. ⏳

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works is: you can call this from literally any critical situation and it'll trigger a system shutdown or reboot after a given period of time. no cap. emergency hours fr fr.

and here's the little plot twist πŸ™ˆ β€” if time is negative this is not scheduled. that's it. negative delay = nothing happens. the vibe check fails, the schedule does not get made. periodt.

⚠️ bestie this one is for critical situations only β€” the manual says so directly, and we do not editorialise. it's an emergency shutdown/reboot scheduler, not a toy. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

the kernel file ./kernel/reboot.c is the mothership, and she has a whole friend group:

like, that's the whole reboot/poweroff extended universe. iykyk 🌈⭐


and that's the page!! πŸŽ€ mwah πŸ’–

so this little beauty lives in ./kernel, dated October 2026 β€” source and version, cute sign-off, bye bestie, go schedule your emergency shutdown responsibly πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from