i2c_transfer_buffer_flags(9)
β¨ i2c_transfer_buffer_flags(9) β¨
okay bestie, welcome to the Kernel API Manual β this one's called i2c_transfer_buffer_flags, and it's literally the "send one message, get one buffer" girlie of the I2C world π¦
π NAME π
i2c_transfer_buffer_flags β issue a single I2C message transferring data to/from a buffer. one message. one buffer. no cap π
πΈ SYNOPSIS πΈ
int i2c_transfer_buffer_flags (const struct i2c_client *client , char
*buf , int count , u16 flags );
π§ ARGUMENTS π§
clientβ Handle to slave device. that's your little buddy you're talking to πbufβ Where the data is stored. the actual vibes container, your data lives here πcountβ How many bytes to transfer, must be less than 64k sincemsg.lenisu16. like, hard limit, theu16said so and she's not flexible about it πflagsβ The flags to be used for the message, e.g.I2C_M_RDfor reads. pick your vibe check: read or write π
β DESCRIPTION β
Returns negative errno, or else the number of bytes transferred.
that's it, that's the whole personality β you either get a sad little negative errno (π not the vibe) or the happy count of bytes that actually made it across. main character energy either way π«Ά
π SEE ALSO π
Kernel file ./drivers/i2c/i2c-core-base.c β plus the whole friend group, fr fr:
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_find_adapter_by_fwnode(9)i2c_get_adapter_by_fwnode(9)i2c_parse_fw_timings(9)i2c_del_driver(9)__i2c_transfer(9)i2c_transfer(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)
okay that's the whole page bestie, mwah π this little icon lives in ./drivers/i2c, version stamped October 2026 β go forth and transfer those buffers, ily, periodt ππβ¨
π¦ 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