cy8c95x0_regmap_update_bits(9)
π cy8c95x0_regmap_update_bits β the kernel API manual, bestie edition
Okay so real quick: this page is cy8c95x0_regmap_update_bits(9) from the Kernel API Manual β it's a section 9 man page, so it's β¨kernel internalsβ¨, not your regular ls-coreutils vibes. Stay with me, it's actually not that deep.
β¨ NAME β¨
cy8c95x0_regmap_update_bits β updates a register using the regmap cache π
Like, that's the whole elevator pitch. It updates a register, and the regmap cache is along for the ride. Periodt.
πΈ SYNOPSIS πΈ
int cy8c95x0_regmap_update_bits (struct cy8c95x0_pinctrl *chip ,
unsigned int reg , unsigned int port , unsigned int mask , unsigned int
val );
That's five whole arguments, she's a demanding function, but we respect her. π
π¦ ARGUMENTS π¦
chipβ the pinctrl we're working on. Your main character struct, fr fr.regβ the register to write to. Can be either a direct access register or a muxed register. MUST NOT be thePORTSELregister π¨ β like, do not do that, that's not the vibe.portβ the port to use for muxed registers, or for quick path direct access registers. Otherwise it just sits there unused, lowkey minding its own business.maskβ the bitmask to change. Show it which bits you care about πvalβ the new value for that bitmask. The glow-up itself β¨
π DESCRIPTION π
So this function handles the register updates for both the direct access registers and the muxed registers β and the whole time it's caching all register accesses π§. Internally it handles the correct state of the PORTSEL register and protects the access to muxed registers. Iconic behaviour, no notes.
β οΈ Warning bestie: the caller must only use this function to change registers behind the PORTSEL mux. Like, that's the rule. Respect it. π
π₯ RETURN π₯
0β for a successful request π (slay)- otherwise β a corresponding error value π (it's giving "something went wrong", go check)
π SEE ALSO π
- Kernel file
./drivers/pinctrl/pinctrl-cy8c95x0.c struct cy8c95x0_pinctrl(9)cy8c95x0_regmap_write_bits(9)cy8c95x0_regmap_read_bits(9)
iykyk β go read those next, they're the friend group π
And that's the whole page, bestie! This lil masterpiece lives in ./drivers/pinctrl and it's dated October 2026 β yes, October 2026, she's from the future, main character energy only ππ«Άπ
π¦ 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