STRUCT I2C_ATR_ADAP_DESC(9)
π struct i2c_atr_adap_desc(9) β the Kernel API Manual, bestie edition
okay so real talk: this page lives in the Kernel API Manual, and honestly? it's the glow-up blueprint for one single thing β an ATR downstream bus descriptor. that's it. that's the whole vibe. π¦
β¨ NAME β¨
struct i2c_atr_adap_desc β An ATR downstream bus descriptor π
like, it's the little form you fill out to describe one downstream bus. no notes, iconic behaviour.
πΈ SYNOPSIS πΈ
struct i2c_atr_adap_desc {
u32 chan_id;
struct device *parent;
struct fwnode_handle *bus_handle;
size_t num_aliases;
u16 *aliases;
};
that's the whole struct, bestie. five fields. memorise it, screenshot it, whatever π
π Members π
chan_idβ the index of the new adapter, and it lives in the range0 .. max_adapters-1(yes, that exact range, respect it). this value gets passed to the callbacks instruct i2c_atr_ops. so like, it's giving "my name is on the list" energy. πparentβ the device being used as the parent of the new i2c adapter. or you can set it toNULLand it'll use the i2c-atr device as the parent instead. choose your parent wisely, main character energy either way. π«Άbus_handleβ the fwnode handle that points to the adapter's i2c peripherals. orNULL. that's it. optional bestie behaviour. πnum_aliasesβ the number of aliases in this adapter's private alias pool. set it to zero if this adapter uses the ATR's global alias pool instead. ngl this one's lowkey important, don't skip it. π₯aliasesβ an optional array of private aliases used by the adapter instead of the ATR's global pool of aliases. and listen: it must contain exactlynum_aliasesentries ifnum_aliases > 0. if not, it's ignored, no cap. π
π¦ SEE ALSO π¦
the whole friend group, literally:
- Kernel file
./include/linux/i2c-atr.h enum i2c_atr_flags(9)struct i2c_atr_ops(9)i2c_atr_new(9)i2c_atr_delete(9)i2c_atr_add_adapter(9)i2c_atr_del_adapter(9)i2c_atr_set_driver_data(9)i2c_atr_get_driver_data(9)
they all ate, honestly. go read them. π
ok one last thing: this page is chillin' in ./include/linux, dated October 2026. screenshot the struct, tell your friends, slay the day away πβ¨π§
that's the whole page bestie, you're so welcome, mwah π
π¦ 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