watchdog_se...art_priority(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… watchdog_se...art_priority(9) πŸ’…

okay bestie, welcome to the Kernel API Manual ✨ β€” yes this page is literally called watchdog_se...art_priority(9) (the terminal ate some letters, she's mysterious like that πŸ’€), and today we're talking about watchdog_set_restart_priority. it's giving "tiny function, big consequences," iykyk πŸŽ€


🌸 NAME 🌸

watchdog_set_restart_priority β€” change the priority of a restart handler 🫢

like, the restart handler already exists, you're just moving her up or down the queue, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

void watchdog_set_restart_priority (struct watchdog_device *wdd , int
priority );

that's the whole vibe: takes a wdd and a priority, returns void (so she gives you nothing back, main character energy honestly πŸ‘‘) πŸŽ€


πŸ’– ARGUMENTS πŸ’–

  • wdd β€” the watchdog device πŸ’… like, the actual watchdog struct you're messing with.
  • priority β€” the priority of the restart handler, and bestie it should follow these guidelines or it's gonna be awkward πŸ™ˆ:
  • 0 β€” use watchdog's restart function as last resort β€” she has limited restart capabilities, so she's the understudy, the backup dancer, the "only if everyone else flakes" option πŸ’€
  • 128 β€” the default restart handler β€” use this if no other handler is expected to be available and/or if restart is sufficient to restart the entire system πŸ’– like, she's reliable, she's the group project member who actually does the work ✨
  • 255 β€” preempts all other handlers πŸ”₯ she goes FIRST, she does not wait, she is THAT girl, periodt πŸ‘‘
ngl the jump from 128 to 255 is dramatic and honestly? iconic. pick your number with intention bestie πŸ’…

✨ DESCRIPTION ✨

okay so here's the tea β˜•: if a wdd->ops->restart function is provided when watchdog_register_device is called, it will be registered as a restart handler with the priority given here πŸ’«

so basically β€” you show up with a restart function, the kernel registers it, and whatever priority you handed over via this function is the priority it gets. no takebacks, no renegotiation, that's the deal πŸŽ€ lowkey important, highkey slay πŸ’œ


🌈 SEE ALSO 🌈

go read these next, bestie, they're all in the same friend group 🫢:


and that's the whole page!! πŸŽ€ this masterpiece lives at ./drivers/watchdog (the source + version vibe πŸ¦‹) and it's dated October 2026 ✨ β€” so go forth, set your priorities, and remember: 255 is for girls who don't wait πŸ’…πŸ’–πŸ”₯

πŸ“¦ where this page comes from