fscache_relinquish_cookie(9)
π fscache_relinquish_cookie(9) π
okay so bestie, welcome to the Kernel API Manual β this one's all about giving a cookie back to the cache. like, literally handing it over. it's giving "returning your friend's hoodie but maybe also throwing it in the trash," and honestly? iconic π
β¨ NAME β¨
fscache_relinquish_cookie β Return the cookie to the cache, maybe discarding it
no cap, that's the whole vibe: you give the cookie back, and maybe you also yeet the thing it represents. we'll get to that π¦
πΈ SYNOPSIS πΈ
void fscache_relinquish_cookie (struct fscache_cookie *cookie , bool retire );
look at that signature. void return, so it doesn't hand you anything back β it just does the thing. π
π«Ά ARGUMENTS π«Ά
cookieβ The cookie being returned
this is the main character right here π it's the cookie you're handing back.
retireβ True if the cache object the cookie represents is to be discarded
so like, if you set this to true, the associated cache object gets forcibly discarded. dramatic? yes. correct? also yes. π₯
π DESCRIPTION π
This function returns a cookie to the cache, forcibly discarding the associated cache object if retire is set to true.
that's it, that's the whole function fr fr β but lowkey important: "forcibly discarding" is not a drill. if you set retire to true, that cache object is gone, periodt. π
See Documentation/filesystems/caching/netfs-api.rst for a complete description.
seriously bestie, go read that doc if you want the full lore. this manpage is the sparknotes version and we respect the source material π
π§ SEE ALSO π§
Kernel file ./include/linux/fscache.h and also, like, the whole fscache friend group β they all show up together:
fscache_acquire_volume(9)fscache_relinquish_volume(9)fscache_acquire_cookie(9)fscache_use_cookie(9)fscache_unuse_cookie(9)fscache_update_cookie(9)fscache_resize_cookie(9)fscache_invalidate(9)fscache_operation_valid(9)fscache_begin_read_operation(9)fscache_end_operation(9)fscache_read(9)fscache_begin_write_operation(9)fscache_write(9)fscache_clear_page_bits(9)fscache_write_to_cache(9)fscache_note_page_release(9)
like a whole group chat of functions and you just left it on read π go say hi to the rest of them.
and that's a wrap, bestie! π this little page lives over in ./include/linux, dated October 2026, and it's filed under fscache_relinquish_cookie(9). go forth and relinquish responsibly π
β¨π
π¦ 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