lc_destroy(9)
π
lc_destroy β a Kernel API Manual moment (that's lc_destroy(9) btw, section 9, iykyk)
Okay so bestie, listen. You know how lc_create() builds you this whole gorgeous lru cache and you're like "omg she's thriving"? Yeah. Well lc_destroy is the one who closes the tab when the party's over. She frees the memory that lc_create() allocated. That's it. That's her whole job. Iconic, honestly. π
β¨ NAME β¨
lc_destroy β literally frees the memory that was allocated by lc_create() π§Ήπ
πΈ SYNOPSIS πΈ
void lc_destroy (struct lru_cache *lc );
No cap, that's the whole signature. She doesn't return anything because she's done after this. π
π¦ ARGUMENTS π¦
lcβ the lru cache you wanna destroy. Your girl is getting cleaned up, periodt. β¨
π SEE ALSO π
Kernel file ./lib/lru_cache.c β that's the whole friend group right there, go say hi:
lc_create(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_put(9)lc_element_by_index(9)lc_seq_dump_details(9)
π alright bestie, that's the whole page β this one came from ./lib, dated October 2026, and she's filed under lc_destroy(9) in your Kernel API Manual. Go forth and free your memory responsibly. mwah. ππ«Ά
π¦ 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