regcache_drop_region(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, the struct 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:

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