twl_i2c_write(9)
π twl_i2c_write(9) π
okay so bestie, welcome to the Kernel API Manual entry for twl_i2c_write β yes it's a (9) page, yes that means kernel-land, yes we're doing this. sit down, hydrate, let's go β¨
πΈ NAME πΈ
twl_i2c_write β literally writes an n bit register in TWL4030/TWL5030/TWL60X0. that's the whole vibe. no cap π
π¦ SYNOPSIS π¦
int twl_i2c_write (u8 mod_no , u8 *value , u8 reg , unsigned num_bytes );
like, look at her. she's returning an int, she's taking four args, she's iconic π
π ARGUMENTS π
mod_noβ the module number. which module we're talking to, bestie π«Άvalueβ an array ofnum_bytes+1containing the data to write. yes, plus one. the +1 is not a typo, do not come for me πregβ the register address (just the offset will do, keep it chill) βnum_bytesβ number of bytes to transfer. count 'em π’
π DESCRIPTION π
Returns 0 on success, or else a negative error code. that's it. that's the whole function. short and slay π
lowkey the realest ones are the ones with three-line manpages, fr fr
π SEE ALSO π
- Kernel file
./drivers/mfd/twl-core.c twl_get_regmap(9)twl_i2c_read(9)twl_set_regcache_bypass(9)twl_read_idcode_register(9)twl_get_type(9)twl_get_version(9)twl_get_hfclk_rate(9)
go read those next, iykyk π¦
and that's the page!! π«Ά this one lives over in ./drivers/mfd, dated October 2026 β mwah, drink some water, you ate π
β¨π
π¦ 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