prcmu_abb_write_masked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… prcmu_abb_write_masked πŸ’…

okay so this is a page from the Kernel API Manual, and it's about prcmu_abb_write_masked β€” literally the function that writes masked register value(s) to the ABB. stay with me bestie, it's actually not that deep 🫢


✨ SYNOPSIS ✨

int prcmu_abb_write_masked (u8 slave , u8 reg , u8 *value , u8 *mask ,
u8 size );

like, yes, that's a lot of u8s, but we'll get through it together πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • slave β€” the I2C slave address. it's giving "who am I talking to" energy.
  • reg β€” the (start) register address. the starting point, the main character of the address space.
  • value β€” the value(s) you wanna write. your actual payload, slay.
  • mask β€” the mask(s) to use. this is the vibe check for your bits.
  • size β€” the number of registers to write. count 'em.

πŸ¦‹ DESCRIPTION πŸ¦‹

So what it does: writes masked register value(s) to the ABB. periodt. πŸ”₯

For each value, only the bits set to 1 in the corresponding mask will be written. the other bits are not changed β€” they stay exactly as they were, no touchy πŸ™ˆ. so like, the mask is literally choosing which bits get to come to the party πŸ’…

ngl, size has to be 1 for the current firmware version. that's not a suggestion, bestie, that's the rule 😭

🌈 SEE ALSO 🌈

the kernel file ./drivers/mfd/db8500-prcmu.c and, honestly, a whole friend group of functions:


and that's the whole page, bestie πŸ’œ this masterpiece lives in ./drivers/mfd and it's dated October 2026 β€” future icon behavior, fr fr. see u in the next prcmu_abb_write_masked(9) 🧚⭐

πŸ“¦ where this page comes from