watchdog_se...art_priority(9)
π 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 π«Ά:
- Kernel file
./drivers/watchdog/watchdog_core.cπ¦ (yes the actual source, go look, she's right there) watchdog_init_timeout(9)βwatchdog_register_device(9)πwatchdog_unregister_device(9)πΈdevm_watchdog_register_device(9)π§
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms