cci_read(9)
π cci_read(9) β like, the CCI register reader bestie π
okay so welcome to the Kernel API Manual page for cci_read(9), and honestly? she's a little legend. this is the function you call when you just wanna grab one single value out of one single CCI register. no drama, no fuss, one register, one read. periodt. β¨
πΈ NAME πΈ
cci_read β read a value from a single CCI register
like, exactly one. one register. a single little value. she's not doing a whole batch for you, that's a different function's job (see SEE ALSO, iykyk π ).
π¦ SYNOPSIS π¦
int cci_read (struct regmap *map , u32 reg , u64 *val , int *err );
look at her. four arguments. iconic behavior. π
β¨ ARGUMENTS β¨
mapβ the register map you're reading from. this is the vibe check of where the bits live. πΊοΈregβ the register address you wanna read. and listen, bestie, use theCCI_REG#()macros to encode the reg width, okay? don't just rawdog the number in there. πvalβ pointer to where the read value gets stored. she reads it, she drops it in here. that's the whole deal. πerrβ optional pointer for storing errors. and here's the tea: if a previous error is already set, then the read gets skipped entirely. no cap. so if you're passing this in, know that an errored-outerrmeans nothing gets read at all. π«Ά
π₯ RETURN π₯
0 on success, or a negative error code on failure. that's it, that's the whole return situation. slay. β
π SEE ALSO π
if you're obsessed (and you should be), go check these out too:
- Kernel file
./include/media/v4l2-cci.h struct cci_reg_sequence(9)cci_write(9)cci_update_bits(9)cci_multi_reg_write(9)devm_cci_regmap_init_i2c(9)
π friendly reminder: that err pointer is optional, but if it's already carrying a previous error in it, the read is skipped. so don't be out here expecting a fresh value with a stale error sitting in there. understand the assignment. π§
and that's the page!! mwah π this little writeup lives in ./include/media, dated October 2026, and if you ever forget her name just remember: cci_read(9). bestie behavior from start to finish. ππ¦π
π¦ 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