regcache_drop_region(9)
β¨ regcache_drop_region β the kernel API manual, bestie edition π
okay so you're looking at regcache_drop_region(9), which lives in the Kernel API Manual, and honestly? it's giving "small function, big cleanup energy." let's get into it π«Ά
πΈ NAME πΈ
regcache_drop_region β Discard part of the register cache
like literally, it throws away a slice of the register cache. not the whole thing. just a region. she's selective π
β¨ SYNOPSIS β¨
int regcache_drop_region (struct regmap *map , unsigned int min ,
unsigned int max );
the way that signature is just three args and a dream π
π ARGUMENTS π
mapβ the map to operate on. this is your main character, thestruct regmap *you're doing the whole thing to πminβ first register to discard. the lower bound, the beginning of the vibe check πmaxβ last register to discard. the upper bound, where the dropping stops π¦
so like, min through max inclusive β that's the region, periodt.
π DESCRIPTION π
Discard part of the register cache.
yep, that's the whole thing. she discards, she's a part of the register cache, she's a region. no cap π₯
Return a negative value on failure, 0 on success.
so bestie: negative = it went badly π, 0 = slay, we ate β¨
π₯ SEE ALSO π₯
Kernel file ./drivers/base/regmap/regcache.c and also these iconic siblings:
regcache_read(9)regcache_write(9)regcache_sync(9)regcache_sync_region(9)regcache_cache_only(9)regcache_mark_dirty(9)regcache_cache_bypass(9)regcache_reg_cached(9)
iykyk, the whole regmap friend group π§
heads up bestie: this page is from ./drivers/base/regmap, and the date on it is October 2026. so like, future vibes π
and that's the page!! source dir ./drivers/base/regmap, October 2026, regcache_drop_region(9) β go forth and drop that region responsibly, 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