i2c_smbus_write_word_data(9)
β¨ 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 tocommandβ 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 π
- kernel file
./drivers/i2c/i2c-core-smbus.cβ the source, go read it bestie π i2c_smbus_pec(9)i2c_smbus_read_byte(9)i2c_smbus_write_byte(9)i2c_smbus_read_byte_data(9)i2c_smbus_write_byte_data(9)i2c_smbus_read_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)
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
- 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