i2c_master_recv(9)
πΈ NAME πΈ
Okay bestie, this is i2c_master_recv(9) from the Kernel API Manual π β itβs the page for issue a single I2C message in master receive mode, and weβre gonna make it make sense. periodt β¨
β¨ SYNOPSIS β¨
int i2c_master_recv (const struct i2c_client *client , char *buf , int count );
π ARGUMENTS π
clientβ handle to the slave device, aka your lil device bestie youβre talking to π«Άbufβ where to store data read from the slave; this is the treasure chest for the bytes πcountβ how many bytes to read. It must be less than 64k, becausemsg.lenisu16β no cap, thatβs just the limit π
π¦ DESCRIPTION π¦
The return is literally: negative errno, or else the number of bytes read. Thatβs the whole vibe check πβ¨
So: negative errno = not today; otherwise = the byte count, periodt π
π SEE ALSO π
Kernel file: ./include/linux/i2c.h π
i2c_master_recv_dmasafe(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)
Byeee π«Ά β source/version is ./include/linux, the date is October 2026, and this iconic page is i2c_master_recv(9). Stay 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