rm3100_regma..._read_locked(9)
π 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 theregmapand themutex. Two-for-one situation, we love a multitasker. πregβ the first register you're reading from, and it gets passed straight on toregmap_bulk_read. No gatekeeping here. β¨valβ the pointer where the read value lands, in the native register size for the device, also handed off toregmap_bulk_read. Sizes matter, bestie. πval_countβ how many registers you're reading, passed toregmap_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms