STRUCT WDAT_WDT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 in ms ⏱️. That's milliseconds, bestie, so don't get it twisted.
  • stopped_in_sleep β€” a bool that 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 β€” another bool, 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 be NULL entries in there for actions that aren't implemented. So if you're poking around and something's NULL, that's not a bug, that's just an action nobody implemented. iykyk.
Heads up bestie: instructions is literally declared as struct list_head *instructions[MAX_WDAT_ACTIONS]; β€” a fixed-size array of pointers, indexed by that WDAT action number. NULL slots 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