STRUCT AMD_I2C_DEV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct amd_i2c_dev(9) β€” the kernel API manual, bestie edition

okay so picture this: you're deep in the kernel API manual and you stumble on struct amd_i2c_dev. that's the whole vibe of this page. it's the MP2 bus/i2c adapter context β€” literally the little home base where the MP2 driver keeps everything it needs to talk i2c. no cap. πŸ¦‹


✨ NAME ✨

struct amd_i2c_dev β€” MP2 bus/i2c adapter context πŸ’–

like, it's the context. the container. the group chat where all the MP2 i2c stuff lives. iconic behavior honestly.


🌸 SYNOPSIS 🌸

struct amd_i2c_dev {
    struct amd_i2c_common common;
    struct platform_device *pdev;
    struct i2c_adapter adap;
    struct completion cmd_complete;
 };

that's the whole struct, copied exactly bc we do not paraphrase code around here. periodt. πŸ‘‘


πŸŽ€ Members πŸŽ€

  • common β€” the shared context it has with the MP2 PCI driver. bestie shares, as she should 🫢
  • pdev β€” the platform driver node. it's giving home address for the platform driver ✨
  • adap β€” the i2c adapter. the main character, lowkey 🌈
  • cmd_complete β€” the xfer completion object. it's the "we're done here, you can wake up now" of the whole operation πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/i2c/busses/i2c-amd-mp2-plat.c β€” go read it, iykyk πŸ‘€πŸ’œ


ngl there are no options, no env vars, no exit statuses on this page β€” just the struct and her four little members. and that's on keeping every single detail fr fr πŸ’―

and that's the page, bestie!! 🌸 source/version lives in ./drivers/i2c/busses, dated October 2026, and the whole thing is filed under struct amd_i2c_dev(9) β€” mwah, slay, go forth and read the kernel source πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from