regcache_mark_dirty(9)
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_syncwill assume that the hardware state still matches the cache state, modulo any writes that happened whencache_onlywas true. Not me warning you bestie β thatβs just how it is. π
π¦ SEE ALSO π¦
Kernel file: ./drivers/base/regmap/regcache.c
regcache_read(9)regcache_write(9)regcache_sync(9)regcache_sync_region(9)regcache_drop_region(9)regcache_cache_only(9)regcache_cache_bypass(9)regcache_reg_cached(9)
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
- 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