STRUCT AMD_I2C_DEV(9)
π 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
- 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