i2c_smbus_write_word_data(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ i2c_smbus_write_word_data ✨

okay so this is a page from the Kernel API Manual, and bestie, it's literally about the SMBus "write word" protocol πŸ’… like that's the whole vibe. let's get into it 🫢


πŸ“– NAME πŸ“–

i2c_smbus_write_word_data β€” the SMBus "write word" protocol, no cap ✨


πŸŽ€ SYNOPSIS πŸŽ€

s32 i2c_smbus_write_word_data (const struct i2c_client *client , u8
command , u16 value );

that's the whole signature, copy it exactly, don't come for me πŸ™ˆ


πŸ’– ARGUMENTS πŸ’–

  • client β€” handle to the slave device πŸ¦‹ like, your little connection to the thing you're talking to
  • command β€” a byte that the slave device interprets πŸ‘‘ it's giving "here's your instruction, you know what to do"
  • value β€” the 16-bit "word" being written ✨ yes, an actual whole word, 16 bits of it 🌸

πŸ”₯ DESCRIPTION πŸ”₯

so this function executes the SMBus "write word" protocol, periodt πŸ’… it returns a negative errno if things go sideways 😭 or zero if it slayed successfully βœ… that's it, that's the whole story, iykyk 🧚


🌈 SEE ALSO 🌈

like, the whole friend group, go say hi to all of them 🫢⭐


and that's the page!! this one's living in ./drivers/i2c and it's dated October 2026 πŸ—“οΈπŸ’œ signed off with love, from the kernel API manual to your terminal πŸ’–πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from