cci_update_bits(9)
π cci_update_bits(9)
okay so we're in the Kernel API Manual bestie, and this is the page for cci_update_bits β literally the glow-up-your-bits function π
β¨ NAME β¨
cci_update_bits β do a whole read/modify/write cycle on one single CCI register π¦ (yes, just one, she's focused, she's main character energy)
πΈ SYNOPSIS πΈ
int cci_update_bits (struct regmap *map , u32 reg , u64 mask , u64 val ,
int *err );
π ARGUMENTS π
mapβ the register map you're updating, bestie. give her the map πΊοΈregβ the register address to update. and listen β use theCCI_REG#()macros to encode the reg width, fr fr, don't just rawdog the number πmaskβ the bitmask of the bits you wanna change β¨valβ the shiny new value for that bitmask πerrβ optional pointer to store errors in. and here's the tea π«: if a previous error is already set, then the update gets skipped entirely. not me, not today π
π DESCRIPTION π
quick vibe check: this uses read-modify-write to update the bits π₯
β οΈ and this is the important part: atomicity with regards to other cci_*() register access functions is NOT guaranteed. like, at all. so don't come for her if two things go brr at the same time π
π RETURN π
0 on success π or a negative error code on failure π periodt.
π«Ά SEE ALSO π«Ά
- Kernel file
./include/media/v4l2-cci.hβ go read it, iykyk π struct cci_reg_sequence(9)cci_read(9)cci_write(9)cci_multi_reg_write(9)devm_cci_regmap_init_i2c(9)
kay that's the whole page, you ate that π
β¨ this icon lives in ./include/media and the version said October 2026 β mwah, see you in the group chat bestie ππ¦π
π¦ 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