lc_put(9)
π¦ NAME π¦
lc_put β give up refcnt of @e β¨
Welcome to the Kernel API Manual, bestie! Todayβs main character energy belongs to lc_put(9), and itβs literally here to give up that refcnt. π
β¨ SYNOPSIS β¨
unsigned int lc_put (struct lru_cache *lc , struct lc_element *e );
π ARGUMENTS π
lcβ the lru cache to operate on. Lowkey the whole squad youβre working with. π«Άeβ the element to put. Yep, this is the one getting put. π
πΈ DESCRIPTION πΈ
Okay so hereβs the tea, bestie: if refcnt reaches zero, the element is moved to the lru list, and a LC_STARVING (if set) is cleared. No cap, that cleanup is iconic. β¨
It returns the new (post-decrement) refcnt. Thatβs the whole vibe β post-decrement and everything. Periodt. π
π SEE ALSO π
Kernel file: ./lib/lru_cache.c β go say hi to the whole friend group:
lc_create(9)lc_destroy(9)lc_reset(9)lc_seq_printf_stats(9)lc_find(9)lc_is_used(9)lc_del(9)lc_get(9)lc_get_cumulative(9)lc_try_get(9)lc_committed(9)lc_element_by_index(9)lc_seq_dump_details(9)
π«Ά with love from./lib, datedOctober 2026β thelc_put(9)girlies are logging off π
π¦ 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