twl_i2c_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 of num_bytes+1 containing 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 🌈

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