fscache_update_cookie(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 cache
  • aux_data β€” the updated auxiliary data for the cookie (may be NULL) β€” so it's optional, she can be null, she's allowed πŸ™ˆ
  • object_size β€” the current size of the object (may be NULL) β€” 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:

like?? the whole roster. ate. πŸ”₯


lowkey a reminder that aux_data and object_size are both allowed to be NULL β€” 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