regcache_cache_only(9)
regcache_cache_only(9) π
okay so this page is from the Kernel API Manual, and it's literally about putting a register map into cache only mode. Bestie, it's giving "pretend everything is normal" energy, but only in the exact way described below.
β¨ NAME β¨
regcache_cache_only β Put a register map into cache only mode.
π SYNOPSIS π
void regcache_cache_only (struct regmap *map , bool enable );
πΈ ARGUMENTS πΈ
mapβ the map you're configuring, aka the register map in question.enableβ the flag for whether changes should be written to the hardware.
π¦ DESCRIPTION π¦
When a register map is marked as cache only, writes to the register map API will only update the register cache. They will not cause any hardware changes. No cap.
This is useful for allowing portions of drivers to act as though the device were functioning as normal when it is disabled for power saving reasons. It's giving "main character device is still here" while the hardware is lowkey chilling. π
π SEE ALSO π
Kernel file ./drivers/base/regmap/regcache.c β and go say hi to the whole friend group:
regcache_read(9)regcache_write(9)regcache_sync(9)regcache_sync_region(9)regcache_drop_region(9)regcache_mark_dirty(9)regcache_cache_bypass(9)regcache_reg_cached(9)
π cute little sign-off: source/version vibes come from ./drivers/base/regmap, and this icon was dated October 2026. periodt. π«Άβ¨
π¦ 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