i2c_master_recv_dmasafe(9)
π i2c_master_recv_dmasafe π
okay so this is a page from the Kernel API Manual, and the star of the show is i2c_master_recv_dmasafe β one function, one job, very main character.
β¨ NAME β¨
i2c_master_recv_dmasafe β issue a single I2C message in master receive mode using a DMA safe buffer π¦
β¨ SYNOPSIS β¨
int i2c_master_recv_dmasafe (const struct i2c_client *client , char *buf
, int count );
β¨ ARGUMENTS β¨
clientβ handle to the slave device π like, your way inbufβ where to store data read from the slave. it must be safe to use with DMA, no exceptions bestie π«Άcountβ how many bytes to read. has to be less than 64k sincemsg.lenisu16π that's the ceiling, respect it
β¨ DESCRIPTION β¨
Returns a negative errno, or else the number of bytes read. that's it, that's the whole vibe β¨
β¨ SEE ALSO β¨
Kernel file ./include/linux/i2c.h and the whole squad π
i2c_master_recv(9)i2c_master_send(9)i2c_master_send_dmasafe(9)struct i2c_device_identity(9)enum i2c_driver_flags(9)struct i2c_driver(9)struct i2c_client(9)struct i2c_board_info(9)I2C_BOARD_INFO(9)struct i2c_algorithm(9)struct i2c_lock_operations(9)struct i2c_timings(9)struct i2c_bus_recovery_info(9)struct i2c_adapter_quirks(9)i2c_lock_bus(9)i2c_trylock_bus(9)i2c_unlock_bus(9)i2c_mark_adapter_suspended(9)i2c_mark_adapter_resumed(9)i2c_check_quirks(9)module_i2c_driver(9)builtin_i2c_driver(9)
ngl the dmasafe in the name is literally a promise β if your buffer isn't DMA safe, that's on you and it will not be cute π
that's the whole page bestie!! πΈ this one lives in ./include/linux, dated October 2026, and it goes by i2c_master_recv_dmasafe(9) β mwah, go read some kernel source, ily ππ
π¦ 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