i3c_dev_set_master_data(9)
π i3c_dev_set_master_data β Kernel API Manual, bestie edition
okay so real talk, this is page i3c_dev_set_master_data(9) from the Kernel API Manual and it's genuinely so simple you're gonna wonder why you were stressed. let's get into it β¨
πΈ NAME πΈ
i3c_dev_set_master_data β the glow-up where you attach master private data to an I3C device descriptor
π¦ SYNOPSIS π¦
void i3c_dev_set_master_data (struct i3c_dev_desc *dev , void *data );
like, that's the whole thing. no cap. π
π ARGUMENTS π
devβ the I3C device descriptor you're attaching your private data to. this is the main character, the one getting the little gift πdataβ the private data itself. it's avoid *, so it's giving mystery, it's giving "i contain multitudes" β the kernel genuinely does not care what's in there, that's your business π«Ά
π DESCRIPTION π
so what does this bad boy actually do? it lets a master controller attach per-device private data to a device descriptor. that's it. that's the function. per-device, meaning each device gets its own little stash, not some shared group-chat situation π
and the whole point? once you've attached it, you can get it back later with i3c_dev_get_master_data. it's literally a set-and-get duo, they're a matching set, they ate π₯
π SEE ALSO π
okay this list is long long, so buckle up bestie, we're doing the full tour of ./include/linux/i3c/master.h and everyone who lives there π§
Kernel file ./include/linux/i3c/master.hstruct 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)i2c_dev_get_master_data(9)i2c_dev_set_master_data(9)i3c_dev_get_master(9)i2c_dev_get_master(9)i3c_master_get_bus(9)
and that's the whole page, you're officially educated π this lil gem lives in ./include/linux/i3c and the version on the menu is October 2026 β go forth and attach your data, icon behavior only πβ¨
π¦ 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