STRUCT WDAT_WDT(9)
π struct wdat_wdt(9) π
Okay bestie, so this is a page from the Kernel API Manual and it's all about struct wdat_wdt β the ACPI WDAT watchdog device πβ¨. Think of it as the little data blob that holds everything the driver needs to know about your watchdog. No cap, it's giving very "guy who keeps track of the dog" energy.
β¨ NAME β¨
struct wdat_wdt β an ACPI WDAT watchdog device π«Ά
π¦ SYNOPSIS π¦
struct wdat_wdt {
struct platform_device *pdev;
struct watchdog_device wdd;
unsigned int period;
bool stopped_in_sleep;
bool stopped;
struct list_head *instructions[MAX_WDAT_ACTIONS];
};
Like, that's the whole squad right there π β six fields, each one doing its own little job.
πΈ MEMBERS πΈ
pdevβ the parent platform device π . This is the device that this watchdog hangs off of, its literal parent.wddβ the watchdog core device π. This is the actual watchdog device that the watchdog core knows and loves.periodβ how long is one watchdog period, and it's measured inmsβ±οΈ. That's milliseconds, bestie, so don't get it twisted.stopped_in_sleepβ aboolthat tells you: is this watchdog stopped by the firmware in S1-S5? π΄ So like, does the firmware put the dog to sleep when the system goes into those sleep states. That's the vibe check.stoppedβ anotherbool, and this one's asking: was the watchdog stopped by the driver in suspend? π Not the firmware this time β the driver did it, during suspend.instructionsβ an array of instruction lists, indexed by an action number from the WDAT table πβ¨. And listen β there can beNULLentries in there for actions that aren't implemented. So if you're poking around and something'sNULL, that's not a bug, that's just an action nobody implemented. iykyk.
Heads up bestie:instructionsis literally declared asstruct list_head *instructions[MAX_WDAT_ACTIONS];β a fixed-size array of pointers, indexed by that WDAT action number.NULLslots are totally a thing and totally fine π.
π₯ SEE ALSO π₯
- The kernel file
./drivers/watchdog/wdat_wdt.cπ struct wdat_instruction(9)π§
That's the whole page, bestie β you ate that π
β. This one lives in ./drivers/watchdog and the manual's dated October 2026, so it's literally from the future, slay π. Go forth and watch those dogs ππ
π¦ 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