STRUCT APD_DEVICE_DESC(9)
π 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,0means 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
- 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