regmap_raw_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_raw_write β€” a.k.a. the regmap_raw_write(9) glow-up πŸŽ€

okay so bestie, welcome to the Kernel API Manual, and today's main character is regmap_raw_write(9) β€” she's the one who yeets a whole raw block of bytes straight at your device, no filter, no formatting, no vibe check in between. let's get into it ✨


🌸 NAME 🌸

regmap_raw_write β€” write raw values to one or more registers. that's it, that's the whole gig πŸ’–


✨ SYNOPSIS ✨

int regmap_raw_write (struct regmap *map , unsigned int reg , const void
*val , size_t val_len );

like, yes, that's the whole signature. she's an int, she returns stuff, we'll get to that 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • map β€” the register map you're writing into. your canvas. your dance floor. πŸ’…
  • reg β€” the initial register you're writing to. like where the party starts. πŸ”₯
  • val β€” the block of data being written, and ngl this one's important: it's already laid out for direct transmission to the device. no formatting, no cute little makeover, she goes out the door exactly as she came in. 😭
  • val_len β€” length of the data that val is pointing at. the size of the block, bestie, don't get it twisted. πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

okay so the whole point of her: this function is intended to be used for things like firmware download, where a large block of data needs to be transferred to the device. big block, one shot, main character energy πŸ‘‘

and hear me when i say: no formatting will be done on the data provided. literally none. zero. she does not touch up your bytes, she does not prep them, she does not add a little garnish 🌸 what you hand her is what the device gets, periodt.

a value of zero will be returned on success ✨ β€” and in the error cases, a negative errno comes back instead 😭 so like, if the number's negative, that's your sign something went sideways, no cap.


🌈 SEE ALSO 🌈

the kernel file lives at ./drivers/base/regmap/regmap.c β€” and here's the whole friend group, everyone's invited, nobody gets left out 🫢

iykyk πŸ’€ that's a lot of siblings but we love a big family πŸ’–


friendly reminder bestie: val is transmitted raw, exactly as laid out. if you were hoping for a little formatting help, she's not that girl πŸ™ˆ

⭐ and that's the page!! sign-off time: this little beauty comes from the source at ./drivers/base/regmap, dated October 2026, and she's filed under regmap_raw_write(9) in the Kernel API Manual. slay, go write some raw bytes, ily πŸ§šβ€β™€οΈπŸ’œπŸ“

πŸ“¦ where this page comes from