i2c_smbus_write_byte(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 πŸ‘‘:


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