lc_find(9)
β¨ 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β thelru_cacheobject π§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:
lc_create(9)lc_destroy(9)lc_reset(9)lc_seq_printf_stats(9)lc_is_used(9)lc_del(9)lc_get(9)lc_get_cumulative(9)lc_try_get(9)lc_committed(9)lc_put(9)lc_element_by_index(9)lc_seq_dump_details(9)
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
- 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