fscache_cook...kup_negative(9)
π fscache_cook...kup_negative β from the Kernel API Manual, section 9, bestie
okay so bestie, welcome to fscache_cookie_lookup_negative β yes that's the full name, the header just got shy and truncated itself to fscache_cook...kup_negative(9), which is honestly giving "name too long for the terminal, not my problem" π. Anyway. It lives in the Kernel API Manual, section 9, and it is short, it is sweet, and it is very specific about when you're allowed to call it. Let's get into it β¨
π NAME π
fscache_cookie_lookup_negative β the function that notes a negative lookup. That's it, that's the whole vibe check. π
β¨ SYNOPSIS β¨
void fscache_cookie_lookup_negative (struct fscache_cookie *cookie );
returns nothing, takes exactly one cookie, does not elaborate πΈ
π ARGUMENTS π
cookieβ the cookie that was being looked up π like, the cookie. The one mid-lookup. That one.
π¦ DESCRIPTION π¦
So here's the tea, bestie π«: this function is you noting that some part of the metadata path in the cache doesn't exist. And once you've clocked that? You get to release any waiting readers β and you get to do it in the certain knowledge that there's nothing for them to actually read. No cap. They were waiting for literally nothing, poor things π. Free them. ποΈ
β οΈ okay important important important: this function uses no locking. None. Zero. It is not out here protecting itself. It must only be called from the state machine β that's the whole rule, and it's not a suggestion, it's the law of this function fr fr π
π₯ SEE ALSO π₯
Kernel file ./fs/netfs/fscache_cookie.c β that's where the sauce lives, go read it iykyk π
And the whole little friend group: fscache_end_cookie_access(9), fscache_begin_cookie_access(9), fscache_resume_after_invalidation(9), fscache_caching_failed(9), fscache_withdraw_cookie(9) π they all hang out together, go say hi.
π cute little sign-off π
This page came to you from ./fs/netfs, dated October 2026, and it's still out here answering to the name fscache_cook...kup_negative(9) because we love a truncated icon π k bye, go release those readers ππ«Ά
π¦ 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