regmap_bulk_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_bulk_write(9) πŸ’…

okay so bestie, welcome to the regmap_bulk_write page from the Kernel API Manual β€” yes it's a section 9 manpage, yes it's about writing registers, and yes we're gonna make it make sense 🫢


✨ NAME ✨

regmap_bulk_write β€” Write multiple registers to the device πŸŽ€


🌸 SYNOPSIS 🌸

int regmap_bulk_write (struct regmap *map , unsigned int reg , const
void *val , size_t val_count );

like, that's the whole signature, no cap πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • map β€” the register map you're writing to, your main character struct πŸ‘‘
  • reg β€” the first register you're writing from (yes, "write from", that's what the page says, iykyk) ⭐
  • val β€” the block of data to be written, in the native register size for the device πŸ“
  • val_count β€” how many registers you're writing, the count, the amount, the vibe check number πŸ”₯

πŸ’œ DESCRIPTION πŸ’œ

So this function? It's literally built for writing a large block of data to the device β€” either in a single transfer or in multiple transfers. Either way, it's giving efficient ✨

A value of zero will be returned on success πŸ₯³ a negative errno will be returned in error cases 😭 (as is tradition).

ngl bestie, always check that return value β€” 0 = slay, negative = something went wrong and you should care πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/base/regmap/regmap.c β€” go read it, it's iconic πŸ“–

then the whole friend group, fr fr:


and that's the page!! πŸ’… this lil beauty lives in ./drivers/base/regmap, dated October 2026, and it's regmap_bulk_write(9) all the way through β€” go write some registers bestie, you got this πŸ§šπŸ’–

πŸ“¦ where this page comes from