STRUCT APD_DEVICE_DESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct apd_device_desc(9) πŸ’…

okay bestie, so this is a page straight out of the Kernel API Manual and it's literally all about struct apd_device_desc β€” the descriptor vibes for an apd device ✨ no cap, that's the whole NAME situation.


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's the whole shape of it, character for character, don't @ me:

struct apd_device_desc {
    unsigned int fixed_clk_rate;
    struct property_entry *properties;
    int (*setup)(struct apd_private_data *pdata);
 };

🌸 Members 🌸

okay so these are the little fields inside and each one is kind of a main character in its own way:

  • fixed_clk_rate β€” this is the fixed rate input clock source for the acpi device πŸ•°οΈ and listen, 0 means there's no fixed rate input clock source, so like, zero = none, periodt.
  • properties β€” these are the build-in properties of the device, such as UART πŸ’œ super chill, just the built-in stuff.
  • setup β€” a hook routine that sets the device resource during create platform device πŸ”₯ iykyk, it's a function pointer: int (*setup)(struct apd_private_data *pdata);

✨ Description ✨

so the whole vibe here? the device description is defined as acpi_device_id.driver_data πŸ’« that's it, that's the tea, that's literally the entire point.


🫢 SEE ALSO 🫢

  • Kernel file ./drivers/acpi/acpi_apd.c β€” go read it bestie, it's giving source of truth 🌈

and that's the page fr fr πŸŽ€ shoutout to ./drivers/acpi and the October 2026 date stamp β€” iconic, we stan a documented struct πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from