lc_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


🫢 with love from ./lib, dated October 2026 β€” the lc_put(9) girlies are logging off πŸ’–
πŸ“¦ where this page comes from