lc_try_lock(9)
π NAME π
okay bestie, welcome to the lc_try_lock(9) page from the Kernel API Manual β¨ this one is short and sweet:
lc_try_lock β variant to stop lc_get() from changing the tracked set π
β¨ SYNOPSIS β¨
int lc_try_lock (struct lru_cache *lc );
π«Ά ARGUMENTS π«Ά
lcβ the lru cache to operate on πΈ
π DESCRIPTION π
Heads up, bestie: the reference counts and order on the active and lru lists may still change π
It only works on a "clean" set.
It returns true if we acquired the lock β which means there are no pending changes β and any further attempt to change the set will not succeed until the next lc_unlock π₯
π¦ SEE ALSO π¦
- Kernel file
./include/linux/lru_cache.hβ also go peek atlc_try_lock_for_transaction(9),lc_unlock(9)π
mwah π this little gem comes from ./include/linux, dated October 2026. bye bestie, go lock responsibly π«Άβ¨
π¦ 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