regmap_bulk_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_bulk_read(9) β€” Kernel API Manual πŸŽ€

okay bestie, buckle up, because this is the page where we read a whole slew of registers in one go and look iconic doing it ✨


🌸 NAME 🌸

regmap_bulk_read β€” read multiple sequential registers from the device 🫢


⭐ SYNOPSIS ⭐

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

no cap, four args, and every single one of them matters πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • map β€” the register map you're reading from, your main character struct πŸ‘‘
  • reg β€” the first register you're reading from, like the starting line of a relay race πŸƒβ€β™€οΈ
  • val β€” a pointer to where the read value gets stored, and heads up: it's in native register size for the device, so don't go assuming bytes, iykyk 😭
  • val_count β€” how many registers you're reading. the whole squad, not just one πŸŽ€

πŸ’– DESCRIPTION πŸ’–

so how do you know if it worked? easy:

  • a value of zero is returned on success, slay ✨
  • a negative errno is returned in error cases β€” literally the kernel's way of saying "not me crying at 3am" πŸ’€

that's it. that's the whole vibe check. zero = we ate, negative errno = we did NOT eat πŸ™ˆ

fr fr though: check that return value. negative errno is not a suggestion, it's a whole mood.

🌈 SEE ALSO 🌈

the crossover episode nobody asked for but everybody needed πŸ”₯ β€” the kernel file lives at ./drivers/base/regmap/regmap.c, and here's the entire friend group:

bestie that's a lot of links and honestly? iconic. go read them all, i'll wait πŸ§šβ€β™€οΈ


and that's the page!! shipped straight from ./drivers/base/regmap, dated October 2026, page name regmap_bulk_read(9) β€” go forth and read those registers sequentially, periodt πŸ’œπŸŒΈπŸ¦‹

you're gonna do amazing, ily, bye!! πŸ’–

πŸ“¦ where this page comes from