STRUCT SDCA_DEVICE_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct sdca_device_data(9) πŸ’–

okay bestie so real talk β€” this is a page straight out of the Kernel API Manual, and it's literally about struct sdca_device_data. it's the whole vibe container for everything SDCA-related. let's get into it ✨


πŸŽ€ NAME πŸŽ€

struct sdca_device_data β€” the structure that holds all the SDCA-related information. that's it, that's the whole job, and it does it slayfully πŸ’…


🌸 SYNOPSIS 🌸

struct sdca_device_data {
    u32 interface_revision;
    int num_functions;
    struct sdca_function_desc function[SDCA_MAX_FUNCTION_COUNT];
    struct acpi_table_swft *swft;
 };

like, look at that struct. gorgeous. no notes. 🫢


πŸ¦‹ Members πŸ¦‹

  • interface_revision β€” this one's a u32, and it's the value read from the _DSD property. its whole main character purpose? checking for changes between silicon versions. lowkey a time capsule ngl πŸ•°οΈ
  • num_functions β€” an int holding the total number of supported SDCA functions. and listen, bestie β€” invalid/unsupported functions will be skipped, so it's not gonna trip over the weird ones 😌
  • function β€” the array of function descriptors. it's typed struct sdca_function_desc and it's sized [SDCA_MAX_FUNCTION_COUNT], so it's giving organized, so it's giving iconic πŸ‘‘
  • swft β€” a pointer to the struct acpi_table_swft, if available. if it's not available? then it's just not, and that's fine πŸ’€

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./include/sound/sdca.h
  • struct sdca_function_desc(9)

go read those too, iykyk 🌈


and that's the whole page, bestie!! no cap, every single detail is right here 🌸

fr fr though β€” struct definitions and file paths go in exactly as written, so copy them character for character if you're typing them anywhere. don't be out here paraphrasing a pointer type 😭

okay bye ily πŸ’– this masterpiece lives in ./include/sound, it's dated October 2026, and it's filed under struct sdca_device_data(9) β€” periodt. πŸŽ€βœ¨

πŸ“¦ where this page comes from