i2c_dev_get_master_data(9)
π i2c_dev_get_master_data(9) π
okay so this is a page straight out of the Kernel API Manual, and bestie, it's a tiny one but it's literally the key to unlocking private data on an I2C device descriptor. no cap. let's get into it π«Ά
β¨ NAME β¨
i2c_dev_get_master_data β get master private data attached to an I2C device descriptor
like, it goes and fetches the master's private data that's been hooked onto an I2C device descriptor. that's the whole vibe. π
πΈ SYNOPSIS πΈ
void * i2c_dev_get_master_data (const struct i2c_dev_desc *dev );
π ARGUMENTS π
devβ the I2C device descriptor you wanna pull the private data from. yes, that one. it'sconst, so don't even think about messing with it π
π¦ RETURN π¦
it gives you back the private data that was previously attached with i2c_dev_set_master_data β¨
or, if nothing's been attached to the device at all, you get NULL. that's it. that's the whole return. no surprises, no plot twists π
π SEE ALSO π
this is the part where the kernel goes absolutely feral with the cross-references, and honestly? iconic. we're talking Kernel file ./include/linux/i3c/master.h, plus:
struct i3c_i2c_dev_desc(9)struct i2c_dev_boardinfo(9)struct i2c_dev_desc(9)struct i3c_ibi_slot(9)struct i3c_device_ibi_info(9)struct i3c_dev_boardinfo(9)struct i3c_dev_desc(9)struct i3c_device(9)enum i3c_bus_mode(9)enum i3c_open_drain_speed(9)enum i3c_addr_slot_status(9)struct i3c_bus(9)struct i3c_master_controller_ops(9)struct i3c_master_controller(9)i3c_bus_for_each_i2cdev(9)i3c_bus_for_each_i3cdev(9)struct i3c_dma(9)i3c_dev_get_master_data(9)i3c_dev_set_master_data(9)i2c_dev_set_master_data(9)i3c_dev_get_master(9)i2c_dev_get_master(9)i3c_master_get_bus(9)
that's a lot of friends but we love a well-connected manpage π
and that's the whole page, bestie!! go get that data, you absolute main character πβ
source: ./include/linux/i3c Β· dated October 2026 β mwah, hope this helped, ily, bye ππ
π¦ 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