STRUCT ADV748X_STATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct adv748x_state β€” literally the state of ADV748X, bestie. That's it, that's the whole vibe. It's the big container struct that holds everything the ADV748X driver needs to keep track of πŸŽ€


✨ SYNOPSIS ✨

okay so here's the whole struct, exactly as it lives, no cap:

struct adv748x_state {
    struct device *dev;
    struct i2c_client *client;
    struct mutex mutex;
    struct device_node *endpoints[ADV748X_PORT_MAX];
    struct i2c_client *i2c_clients[ADV748X_PAGE_MAX];
    struct regmap *regmap[ADV748X_PAGE_MAX];
    struct adv748x_hdmi hdmi;
    struct adv748x_afe afe;
    struct adv748x_csi2 txa;
    struct adv748x_csi2 txb;
 };

like, look at her. she's got pointers, she's got mutexes, she's got arrays of regmaps. main character energy fr πŸ’…

🌸 Members 🌸

  • dev β€” the (OF) device. your actual hardware bae 🫢
  • client β€” the I2C client. iconic.
  • mutex β€” protects the global state. do not touch the state without holding her, bestie, that's the whole point 😭
  • endpoints β€” the parsed device node endpoints for each port. one per port, all parsed and ready ✨
  • i2c_clients β€” the I2C clients for the page accesses. yes, plural, there's a whole array of them πŸ¦‹
  • regmap β€” the regmap configuration pages. indexed by page, as one does πŸ’œ
  • hdmi β€” state of the HDMI receiver context πŸ“Ί
  • afe β€” state of the AFE receiver context 🌈
  • txa β€” state of the TXA transmitter context πŸ”₯
  • txb β€” state of the TXB transmitter context ⭐

like the way it's just holding four whole subsystem contexts plus everything else? obsessed. she's giving "group project but I'm the only one doing the work" energy and honestly? she ate πŸ‘‘

heads up: these are all the members, fr fr β€” nothing skipped, nothing merged. if you're looking for a field that isn't here, it's not here and I can't invent it for you πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/media/i2c/adv748x/adv748x.h β€” go read the header, iykyk πŸ’«

and that's the whole page, bestie! this one came from <purple>./drivers/media/i2c/adv748x</purple>, dated October 2026 β€” so like, yeah, that's the source and the version and the date all in one cute little sign-off πŸŽ€βœ¨ slay πŸ’–

πŸ“¦ where this page comes from