rm3100_regma..._read_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rm3100_regma..._read_locked(9) β€” yes the name's long, she's dramatic, live with it

Okay so bestie, we're in the Kernel API Manual today (that's the manual name, no cap β€” that's literally what section this page lives in) and the page is rm3100_regma..._read_locked(9). The title got truncated by the manpage formatter because it was too iconic to fit. Anyway. ✨


πŸŽ€ NAME πŸŽ€

rm3100_regmap_bulk_read_locked β€” bestie she is literally just a wrapper around regmap_bulk_read() with a mutex. That's it. That's the whole job. She shows up, she locks, she reads, she unlocks. Main character energy fr. 🫢


✨ SYNOPSIS ✨

int rm3100_regmap_bulk_read_locked (struct rm3100_data *data , unsigned
int reg , void *val , size_t val_count );

🌸 ARGUMENTS 🌸

  • data β€” your data structure that's carrying the regmap and the mutex. Two-for-one situation, we love a multitasker. πŸ’–
  • reg β€” the first register you're reading from, and it gets passed straight on to regmap_bulk_read. No gatekeeping here. ✨
  • val β€” the pointer where the read value lands, in the native register size for the device, also handed off to regmap_bulk_read. Sizes matter, bestie. πŸ‘‘
  • val_count β€” how many registers you're reading, passed to regmap_bulk_read. Like how many slices of pizza. πŸ“

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, <pink>intended for use only in rm3100_trigger_handler</pink>. That's the whole vibe check β€” this is not a general-purpose girlie, she has ONE job and one context, and if you use her anywhere else that's on you. πŸ™ˆ


πŸ”₯ RETURN πŸ”₯

  • zero on success β€” slay, we ate. βœ…
  • a negative errno in error cases β€” 😭 it happens to the best of us, just check your returns.

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/iio/magnetometer/rm3100-core.c β€” go read the source, it's giving lore dropped. πŸ“–

ngl if you're looking for more context, the actual code is right there in the file above. iykyk. πŸ’…

okay bestie that's the whole page 🧚 this iconic little entry lives in the directory ./drivers/iio/magnetometer, it's stamped October 2026, and it answers to the name rm3100_regma..._read_locked(9) β€” yes, still truncated, still gorgeous. mwah πŸ’–

πŸ“¦ where this page comes from