regcache_mark_dirty(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

regcache_mark_dirty(9) 🧚

okay bestie, welcome to the Kernel API Manual β€” this page is short, iconic, and lowkey carrying the whole resume flow on its back. πŸ’…

✨ NAME ✨

regcache_mark_dirty β€” Indicate that HW registers were reset to default values.

πŸŽ€ SYNOPSIS πŸŽ€

void regcache_mark_dirty (struct regmap *map );

🫢 ARGUMENTS 🫢

  • map β€” map to mark. That’s the map you’re marking, periodt. πŸ’–

🌈 DESCRIPTION 🌈

So basically: this tells regcache that the device has been powered down or reset. The whole point is that on resume, regcache_sync knows to write out all the non-default values stored in the cache. Slay. ✨

If this function is not called, regcache_sync will assume that the hardware state still matches the cache state, modulo any writes that happened when cache_only was true. Not me warning you bestie β€” that’s just how it is. 😭

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file: ./drivers/base/regmap/regcache.c


mwah πŸ’‹ this little page lives at source ./drivers/base/regmap, version regcache_mark_dirty(9), and it’s dated October 2026. no cap. 🫢

πŸ“¦ where this page comes from