i2c_find_adapter_by_fwnode(9)
π NAME π
okay so bestie, welcome to i2c_find_adapter_by_fwnode(9) from the Kernel API Manual β itβs the function thatβs literally like βwhere is my i2c adapter?β but for a fwnode. Itβs giving lookup energy, no cap. π¦
β¨ SYNOPSIS β¨
struct i2c_adapter * i2c_find_adapter_by_fwnode (struct fwnode_handle
*fwnode );
πΈ ARGUMENTS πΈ
fwnodeβ thestruct fwnode_handlecorresponding to thestruct i2c_adapter. Thatβs the little handle, bestie. π
π DESCRIPTION π
okay so hereβs the whole vibe: it looks up and returns the struct i2c_adapter corresponding to the fwnode. If no adapter can be found, or if fwnode is NULL, this returns NULL. Periodt. π
β οΈ cleanup check, bestie: the user must call put_device(adapter->dev) once done with the i2c adapter. Do not skip that β itβs literally required. π
π₯ SEE ALSO π₯
Kernel file ./drivers/i2c/i2c-core-base.c β and the whole iconic friend group is:
i2c_verify_client(9)i2c_adapter_lock_bus(9)i2c_adapter_trylock_bus(9)i2c_adapter_unlock_bus(9)i2c_new_client_device(9)i2c_unregister_device(9)i2c_find_device_by_fwnode(9)i2c_new_dummy_device(9)devm_i2c_new_dummy_device(9)i2c_new_ancillary_device(9)i2c_verify_adapter(9)i2c_handle_smbus_host_notify(9)i2c_add_adapter(9)i2c_add_numbered_adapter(9)i2c_del_adapter(9)devm_i2c_add_adapter(9)i2c_get_adapter_by_fwnode(9)i2c_parse_fw_timings(9)i2c_del_driver(9)__i2c_transfer(9)i2c_transfer(9)i2c_transfer_buffer_flags(9)i2c_get_device_id(9)i2c_client_get_device_id(9)i2c_get_dma_safe_msg_buf(9)i2c_put_dma_safe_msg_buf(9)
π xoxo, bestie β source/version: ./drivers/i2c, date: October 2026, page: i2c_find_adapter_by_fwnode(9). slay and goodbye. π«Ά
π¦ 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