regmap_write(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_write(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so this is the page for regmap_write(9). yes the title and the manual name are the same thing, we love a self-titled icon πŸ‘‘ β€” it's a section 9 (kernel API) page, and it's about writing exactly one value to exactly one register. tiny scope, huge slay ✨


🌸 NAME 🌸

regmap_write β€” write a value to a single register πŸ’–


✨ SYNOPSIS ✨

int regmap_write (struct regmap *map , unsigned int reg , unsigned int
       val );

🫢 ARGUMENTS 🫢

  • map β€” the register map you're writing into. this is the whole vibe, it's the thing that knows where all the registers live πŸ—ΊοΈ
  • reg β€” the one specific register you're writing to. just the one. single-target energy πŸ’…
  • val β€” the value that's going in there. that's it, that's the payload 🎁

πŸ’œ DESCRIPTION πŸ’œ

so here's the whole deal: you call this, and on success you get a value of zero back πŸŽ‰ zero is the good number, zero means we ate and left no crumbs.

if something goes wrong, you get a negative errno back 😭 so like, negative = not good, check it, handle it, don't just ignore it bestie fr fr.


πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file lives at ./drivers/base/regmap/regmap.c, and here's the whole friend group, in the order the page gives them πŸ‘―β€β™€οΈ


ngl the entire read/write/free/alloc cinematic universe is right there in SEE ALSO, so if you ever feel like you're writing to the wrong granularity, that's your sign to go browse 🧚

and that's the page!! 🌈 this one's sourced from ./drivers/base/regmap and dated October 2026 β€” so like, future-dated queen πŸ‘‘πŸ’€ go write some registers, i'm obsessed with you, byeee πŸ“πŸ’–

πŸ“¦ where this page comes from