STRUCT AC97_CONTROLLER(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, so this one's a kernel API manual page for struct ac97_controller, and it's literally the main character of the AC-Link situation πŸ’… it lives in the Kernel API Manual, so you know it's the real deal πŸŽ€


🌸 SYNOPSIS 🌸

like, here's the whole shape of it, no cap:

struct ac97_controller {
    const struct ac97_controller_ops *ops;
    struct list_head controllers;
    struct device adap;
    int nr;
    unsigned short slots_available;
    struct device *parent;
    struct ac97_codec_device *codecs[AC97_BUS_MAX_CODECS];
    void *codecs_pdata[AC97_BUS_MAX_CODECS];
 };

copy it exactly, bestie, every character matters 🫢


πŸ¦‹ Members πŸ¦‹

  • ops β€” the AC97 operations ✨ like the whole to-do list of what this controller can actually do.
  • controllers β€” linked list of all existing controllers πŸ”— yes, all of them, holding hands in a list.
  • adap β€” the shell device ac97-d, i.e. the ac97 adapter πŸ‘‘ it's giving adapter energy.
  • nr β€” the number of the shell device πŸ”’ literally just its number.
  • slots_available β€” the mask of accessible/scanable codecs πŸŽ€ a lil mask that says which codecs we can reach and scan.
  • parent β€” the device providing the AC97 controller 🌈 the parent device, the one who brought it into this world.
  • codecs β€” the 4 possible AC97 codecs (NULL if none found) πŸ’– four slots, and if nothin's there it's NULL, periodt.
  • codecs_pdata β€” platform_data for each codec (NULL if no pdata) πŸ“ same deal, per-codec platform data, and NULL when there's none.

πŸ’œ Description πŸ’œ

so listen πŸ™ˆ this structure is internal to AC97 bus, and it should not be used by the controllers themselves β€” the only exception being using dev. that's it. that's the whole vibe check. no cap, don't go grabbing at the internals, bestie, it's not for you 😭


⭐ SEE ALSO ⭐

  • Kernel file ./include/sound/ac97/controller.h struct
  • ac97_controller_ops(9)

and that's the whole page, bestie πŸ§šπŸ’« this one's from ./include/sound/ac97, dated October 2026, and it's struct ac97_controller(9) β€” go off, you understood it fr fr πŸ’…πŸ”₯

πŸ“¦ where this page comes from