regcache_cache_only(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


πŸ’Œ 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