regmap_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_read(9) β€” the Kernel API Manual glow-up ✨

okay so bestie, welcome to regmap_read(9) from the Kernel API Manual β€” this is the little function that goes "hey register map, what's in this one register?" and honestly? iconic. πŸŽ€


🌸 SYNOPSIS 🌸

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

like, it returns an int, takes a struct regmap * called map, an unsigned int called reg, and a unsigned int pointer called val. three args, no drama. πŸ’…


✨ ARGUMENTS ✨

  • map β€” the register map you're reading from πŸ—ΊοΈ like, this is the whole vibe of where your registers live.
  • reg β€” the specific register you want to read from. yes, that one. 🎯
  • val β€” a pointer where the read value gets stored. she's just a vessel, holding your data for you 🫢

πŸ’– DESCRIPTION πŸ’–

so here's the tea: a value of zero gets returned on success, and a negative errno gets returned in error cases. that's it, that's the whole description. no cap. 😭

lowkey the most important thing to remember: 0 = slay, negative errno = something went wrong, check it fr fr πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

the friend group is BIG, bestie. buckle up. 🌈

Kernel file ./drivers/base/regmap/regmap.c β€” plus all of these cuties:

like, that's a whole group chat right there. mwah. πŸ’‹


and that's the page! πŸ’œ this little beauty lives in ./drivers/base/regmap and the docs are dated October 2026 β€” so mark your calendar, bestie, and go read some registers. πŸ“πŸ§šβœ¨

πŸ“¦ where this page comes from