lc_try_lock(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 πŸ¦‹


mwah πŸ’‹ this little gem comes from ./include/linux, dated October 2026. bye bestie, go lock responsibly 🫢✨

πŸ“¦ where this page comes from