i2c_smbus_write_byte(9)
β¨ i2c_smbus_write_byte β¨
okay bestie, welcome to the Kernel API Manual β this one's a lil function from the kernel's i2c corner and honestly it's giving "tiny but mighty" π
πΈ NAME πΈ
i2c_smbus_write_byte β the SMBus "send byte" protocol, no cap π
π SYNOPSIS π
s32 i2c_smbus_write_byte (const struct i2c_client *client , u8 value );
like, that's the whole signature. short queen behavior π
π«Ά ARGUMENTS π«Ά
clientβ handle to the slave device π¦ (yes, the actual device you're talking to)valueβ the byte that's getting sent π
π DESCRIPTION π
so what does it do? it executes the SMBus "send byte" protocol. that's the whole vibe fr fr β¨
and when it comes back, it's returning negative errno or else zero on success β so like, if you see a negative number, something went sideways, and if you see 0, it ate and left no crumbs π₯
π¦ SEE ALSO π¦
kernel file ./drivers/i2c/i2c-core-smbus.c plus the whole friend group π:
i2c_smbus_pec(9)i2c_smbus_read_byte(9)i2c_smbus_read_byte_data(9)i2c_smbus_write_byte_data(9)i2c_smbus_read_word_data(9)i2c_smbus_write_word_data(9)i2c_smbus_read_block_data(9)i2c_smbus_write_block_data(9)i2c_smbus_xfer(9)i2c_smbus_read_i2c_block_data_or_emulated(9)i2c_new_smbus_alert_device(9)
bestie reminder: i2c_smbus_write_byte is literally just the send byte protocol β don't go expecting it to read anything back, that's a whole other function's job π
and that's the page!! sourced from ./drivers/i2c, dated October 2026 β mwah, go forth and send bytes πππ¦πΈ
π¦ 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