cci_update_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the CCI_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 🫢


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