i3c_master_r...c_dev_locked(9)
β¨ NAME β¨
okay so welcome to the Kernel API Manual, bestie β this page is i3c_master_r...c_dev_locked(9), and it's literally about i3c_master_reattach_i3c_dev_locked β reattaching an I3C device that got itself a brand new address. glow-up arc fr π
π¦ SYNOPSIS π¦
int i3c_master_reattach_i3c_dev_locked (struct i3c_dev_desc *dev , u8
old_dyn_addr );
π ARGUMENTS π
devβ the I3C device descriptor you're reattaching, like the little guy's whole ID card πͺͺold_dyn_addrβ the device's previous dynamic address, i.e. the address it had before the glow-up π
πΈ DESCRIPTION πΈ
so the way this works: this function reattaches an existing I3C device to the bus when its dynamic address has changed. it updates the bus address slot status accordingly, no cap:
- Marks the new dynamic address as occupied by an I3C device β
- Frees the old dynamic address slot if applicable ποΈ
β οΈ bestie this function must be called with the bus lock held in write mode. like, not optional. that's the rule. π
π₯ RETURN π₯
returns 0 on success π β or a negative error code if the reattachment fails (e.g. -EBUSY if the new address slot is not free π). yeah she'll tell you if the slot's taken, iconic of her honestly.
π SEE ALSO π
Kernel file ./drivers/i3c/master.c β go read it, iykyk π
i3c_bus_maintenance_lock(9)i3c_bus_maintenance_unlock(9)i3c_bus_normaluse_lock(9)i3c_bus_normaluse_unlock(9)i3c_master_queue_hotjoin(9)i3c_master_send_ccc_cmd_locked(9)i3c_master_get_free_addr(9)i3c_master_setaasa_locked(9)i3c_master_entdaa_locked(9)i3c_master_enec_disec_locked(9)i3c_master_disec_locked(9)i3c_master_enec_locked(9)i3c_master_defslvs_locked(9)i3c_master_has_wakeup_enabled_devs(9)i3c_master_dma_map_single(9)i3c_master_dma_unmap_single(9)i3c_master_set_info(9)i3c_master_bus_init(9)__i3c_master_add_i3c_dev_locked(9)i3c_master_add_i3c_dev_locked(9)i3c_master_do_daa_ext(9)i3c_master_do_daa(9)i3c_master_queue_ibi(9)i3c_generic_ibi_free_pool(9)i3c_generic_ibi_alloc_pool(9)i3c_generic_ibi_get_free_slot(9)i3c_generic_ibi_recycle_slot(9)i3c_master_register(9)i3c_master_unregister(9)i3c_dev_disable_ibi_locked(9)i3c_dev_enable_ibi_locked(9)i3c_dev_request_ibi_locked(9)i3c_dev_free_ibi_locked(9)
and that's the whole page, bestie!! π«Ά this one's from ./drivers/i3c, stamped October 2026, page i3c_master_r...c_dev_locked(9) β go forth and reattach those devices responsibly πβ¨
π¦ 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