i2c_dev_get_master(9)
π i2c_dev_get_master β get master used to communicate with a device
Hiii bestie, welcome to the Kernel API Manual entry for i2c_dev_get_master(9) π β yes that's the page number, it's giving "we do things properly here". This one is short and sweet, so let's go β¨
πΈ NAME πΈ
i2c_dev_get_master β get master used to communicate with a device
Literally what it says on the tin, no cap. It hands you back the master that's in charge of talking to a given device π
β¨ SYNOPSIS β¨
struct i3c_master_controller * i2c_dev_get_master (struct i2c_dev_desc
*dev );
Yup, that's the whole signature β it returns a pointer to a struct i3c_master_controller, and it takes exactly one thing. Iconic behaviour, honestly π
π¦ ARGUMENTS π¦
devβ I2C dev. That's your device, the one you want the master for. That's it, that's the only argument π
π RETURN π
the master controller driving dev β like, the actual master controller that drives that device. That's the vibe check result and it passed π₯
π SEE ALSO π
More reading, because we support each other's hyperfixations π«Ά Everything below lives in the Kernel file ./include/linux/i3c/master.h:
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_get_master_data(9)i2c_dev_set_master_data(9)i3c_dev_get_master(9)i3c_master_get_bus(9)
Ngl bestie this page is tiny, but that's the whole thing β nothing hidden, nothing omitted, every struct and enum accounted for πβ¨
Okay that's the page!! Mwah π This little drop came from ./include/linux/i3c, landing in October 2026 β so go forth, get your masters, and slay π§ββοΈππ
π¦ 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