fscache_update_cookie(9)
π« fscache_update_cookie β the kernel API manual, but make it make sense
okay so real talk, bestie β this one is a kernel API page, which sounds scary but it's literally just "hey cache, pls refresh ur notes about this object." No cap. Let's get into it π
πΈ NAME πΈ
fscache_update_cookie β request that a cache object be updated β¨
π SYNOPSIS π
void fscache_update_cookie (struct fscache_cookie *cookie , const void
*aux_data , const loff_t *object_size );
like, that's the whole signature. she's serving void β she returns nothing, she just does the thing. main character energy fr fr π
π¦ ARGUMENTS π¦
cookieβ the cookie representing the cache object πͺ like yes bestie, the actual handle for the thing in the cacheaux_dataβ the updated auxiliary data for the cookie (may beNULL) β so it's optional, she can be null, she's allowed πobject_sizeβ the current size of the object (may beNULL) β also optional, also allowed to be null, we love a flexible parameter β¨
π DESCRIPTION π
so what she does: she requests an update of the index data for the cache object associated with the cookie. that's the vibe. π«Ά
the way the order works β and this is important, iykyk β the auxiliary data on the cookie gets updated first if aux_data is set, and then the object size gets updated, and the object possibly gets trimmed, if object_size is set. so like, aux data first, then size + possible trim. periodt. π
and if you want the complete description (the full lore, the director's cut), go read Documentation/filesystems/caching/netfs-api.rst. it's all there, bestie, i promise ππ«
π SEE ALSO π
kernel file ./include/linux/fscache.h β that's where she lives, that's her home π π
and the whole friend group, the entire fscache squad, no one left out:
fscache_acquire_volume(9)fscache_relinquish_volume(9)fscache_acquire_cookie(9)fscache_use_cookie(9)fscache_unuse_cookie(9)fscache_relinquish_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?? the whole roster. ate. π₯
lowkey a reminder thataux_dataandobject_sizeare both allowed to beNULLβ that's not a bug, that's the API being chill. check before you assume, bestie π
okay that's the page!! π this one's from ./include/linux, dated October 2026, and it's the fscache_update_cookie(9) page from the Kernel API Manual. slay, go update ur cookies π
β¨π¦
π¦ 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