lc_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to the Kernel API Manual page for lc_find(9) πŸ’…βœ¨. This one is literally about finding an element by label, if present in the hash table πŸŽ€. That's the whole vibe: lc_find = β€œfind element by label, if present in the hash table” πŸ‘‘

🌸 SYNOPSIS 🌸

struct lc_element * lc_find (struct lru_cache *lc , unsigned int enr );

the call looks like this, bestie β€” copy it exactly 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • lc β€” the lru_cache object 🧚
  • enr β€” element number πŸ”’

πŸ’– DESCRIPTION πŸ’–

Okay so here's the tea β˜•: lc_find returns the pointer to an element if the element with the requested β€œlabel” or element number is present in the hash table, or NULL if it's not found πŸ’€. It does not change the refcnt β€” no touching, no drama πŸ™ˆ. It also ignores elements that are β€œabout to be used”, i.e. not yet in the active set, but still pending transaction commit ✨.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./lib/lru_cache.c is the home base 🏠, and these besties are also in the group chat:


and that's the vibe check, bestie πŸ«ΆπŸ’– this cutie is from source/version ./lib, dated October 2026, and it's the lc_find(9) page β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from