calipso_cache_entry_free(9)
π calipso_cache_entry_free(9)
okay so bestie, welcome to the Kernel API Manual β¨ β this one lives in calipso_cache_entry_free(9) land and it's literally about one thing: yeeting a cache entry into the void. π¦
πΈ SYNOPSIS πΈ
void calipso_cache_entry_free (struct calipso_map_cache_entry *entry );
that's it. that's the whole vibe check. one arg, no return value, no drama. π
π ARGUMENTS π
entryβ the entry to free π like, the actual cache entry you're about to release back into the wild. this is the main character of the function, fr fr.
β¨ DESCRIPTION β¨
so here's the tea, bestie π β this function frees the memory associated with a cache entry. and it's not just the entry itself, no ma'am: it also handles the LSM cache data, but only if there are no longer any users. π
"no longer any users" means reference count == 0. periodt. if the refcount isn't zero, the LSM cache data stays put β we don't touch it. π₯
ngl this is the important bit: the LSM cache data only gets freed when reference count == 0. don't forget it, iykyk π
π SEE ALSO π
okay this is the friend group π«Ά β the kernel file is ./net/ipv6/calipso.c, and here's the whole squad:
calipso_map_cache_hash(9)calipso_cache_init(9)calipso_cache_invalidate(9)calipso_cache_check(9)calipso_cache_add(9)calipso_doi_search(9)calipso_doi_add(9)calipso_doi_free(9)calipso_doi_free_rcu(9)calipso_doi_remove(9)calipso_doi_getdef(9)calipso_doi_putdef(9)calipso_doi_walk(9)calipso_validate(9)calipso_map_cat_hton(9)calipso_map_cat_ntoh(9)calipso_pad_write(9)calipso_genopt(9)calipso_opt_update(9)calipso_tlv_len(9)calipso_opt_find(9)calipso_opt_insert(9)calipso_opt_del(9)calipso_opt_getattr(9)calipso_sock_getattr(9)calipso_sock_setattr(9)calipso_sock_delattr(9)calipso_req_setattr(9)calipso_req_delattr(9)calipso_skbuff_optptr(9)calipso_skbuff_setattr(9)calipso_skbuff_delattr(9)calipso_init(9)
π that's the whole page, bestie! mwah π this came to you from ./net/ipv6, dated October 2026 β stay slay, keep your refcounts at zero, and see u in the next manpage π§π
π¦ 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