STRUCT I2C_ATR_ALIAS_PAIR(9)
β¨ struct i2c_atr_alias_pair(9) β¨
okay so bestie, welcome to the Kernel API Manual π
and today's main character is struct i2c_atr_alias_pair β it's literally the lil container that holds the alias assigned to a client address. that's the whole vibe. no cap. π
πΈ SYNOPSIS πΈ
struct i2c_atr_alias_pair {
struct list_head node;
bool fixed;
u16 addr;
u16 alias;
};
like, that's the whole struct. four fields. iconic. π¦
π Members π
okay so let's go through the glow-ups one by one, iykyk:
nodeβ it's a list node. that's it, that's the whole job. it's giving "i'm just here to be linked." β¨fixedβ this is the spicy one π₯. it means the alias pair cannot be replaced during dynamic address attachment. and before you ask why β this flag is literally necessary for situations where a single I2C transaction contains more distinct target addresses than the ATR channel can handle π. it marks addresses that have already been attached to an alias, so that their alias pair does not get evicted by a subsequent address in the same transaction. it's a bodyguard. it's protection. it said "not on my watch" π.addrβ the address of the client on the child bus. straightforward. slay. πaliasβ the I2C alias address assigned by the driver. and this is the important bit, bestie: this is the address that will be used to issue I2C transactions on the parent (physical) bus π. that's the one the real world sees. periodt.
π¦ SEE ALSO π¦
- Kernel file
./drivers/i2c/i2c-atr.c struct i2c_atr_alias_pool(9)struct i2c_atr_chan(9)struct i2c_atr(9)
bestie go read the friends too, they're all in the same friend group fr fr π«Ά
ngl if you skipped the fixed explanation, go back up π. that's the part that keeps your multi-address transactions from eating themselves. it's lowkey the whole plot. β
okay and for the cute sign-off: this lil masterpiece lives under ./drivers/i2c πΈ, and the version stamp is October 2026 β and yes, the page title is literally struct i2c_atr_alias_pair(9) again at the bottom, because the manpage said "main character energy" twice and honestly? respect π. bye bestie, go read your 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