cci_multi_reg_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… cci_multi_reg_write(9) β€” the kernel API manual, but make it make sense ✨

okay bestie, welcome to the cci_multi_reg_write glow-up πŸŽ€ this one lives in the kernel API manual, so grab your emotional support iced coffee and let's get into it πŸ’–


✨ NAME ✨

cci_multi_reg_write β€” write multiple registers to the device, no cap πŸ”₯


🌸 SYNOPSIS 🌸

int cci_multi_reg_write (struct regmap *map , const struct
       cci_reg_sequence *regs , unsigned int num_regs , int *err );

literally the whole thing, character for character, because we do not play with signatures around here πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • map β€” the register map you're writing to, iykyk 🌈
  • regs β€” an array of structures holding register-address, -value pairs to be written; the register-addresses use CCI_REG#() macros to encode reg width πŸ‘‘
  • num_regs β€” how many registers we're writing, count 'em 🧚
  • err β€” optional pointer to store errors; if a previous error is already set, then the write gets skipped πŸ™ˆ (yes, it just ghosts the write, iconic behaviour)

πŸ’œ DESCRIPTION πŸ’œ

Write multiple registers to the device, where the set of register, value pairs is supplied in any order, possibly not all in a single range 🫢 so go off, put them wherever, it's giving chaos-friendly API ⭐

Use of the CCI_REG#() macros to encode reg width is mandatory β€” like, not optional, not a suggestion, mandatory mandatory, periodt πŸ’…

For raw lists of register-address, -value pairs with only 8 bit wide writes, you can use regmap_multi_reg_write instead 🌸 (a little side quest option for you)


πŸŽ€ RETURN πŸŽ€

0 on success, or a negative error code on failure 😭 that's it, that's the vibe check.


πŸ”₯ SEE ALSO πŸ”₯


ok but fr fr, read the SEE ALSO list, your besties cci_read and cci_write are right there and they ate πŸ’–

kisses, this page lives in ./include/media and was dated October 2026 β€” source/version and date, delivered with love, slay πŸ’…βœ¨

πŸ“¦ where this page comes from