cy8c95x0_regmap_update_bits(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the PORTSEL register 🚨 β€” 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 🌈

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