cci_multi_reg_write(9)
π 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 useCCI_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 π₯
- Kernel file
./include/media/v4l2-cci.h struct cci_reg_sequence(9)cci_read(9)cci_write(9)cci_update_bits(9)devm_cci_regmap_init_i2c(9)
ok but fr fr, read the SEE ALSO list, your bestiescci_readandcci_writeare 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
- 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