nfsd_nl_cache_flush_doit(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… nfsd_nl_cache_flush_doit(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so this is a page from the Kernel API Manual about nfsd_nl_cache_flush_doit, and honestly? it's giving "tiny function, big cleanup energy." let's get into it ✨


🌸 NAME 🌸

nfsd_nl_cache_flush_doit β€” flush nfsd caches via netlink πŸ§ΉπŸ’¨

like, the whole job. cache go bye. through netlink. slay.


✨ SYNOPSIS ✨

int nfsd_nl_cache_flush_doit (struct sk_buff *skb , struct genl_info
*info );

yup, that's the whole signature. she's short and she knows it πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • skb β€” the reply buffer 🫢 like, this is where the answer goes back out, okay?
  • info β€” netlink metadata and command arguments πŸ—‚οΈ everything the netlink layer knows about the call plus the args that came with it. very main character.

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so the actual tea β˜•: this bad girl flushes the svc_export and/or expkey caches. yes, and/or β€” she's flexible like that πŸ’β€β™€οΈ

here's the vibe check on the bitmask:

  • if NFSD_A_CACHE_FLUSH_MASK is provided, then only the caches indicated by the bitmask get flushed 🎯
    • bit 0 = svc_export
    • bit 1 = expkey
  • if it's omitted? she flushes both. no crumbs left. periodt. 🧽

and the return situation:

  • returns 0 on success πŸŽ‰
  • returns a negative errno if something goes sideways 😭
ngl, that's the whole contract β€” success is 0, failure is negative errno, and the bitmask is optional. don't overthink it, bestie πŸ’–

🌈 SEE ALSO 🌈

the kernel file ./fs/nfsd/nfsctl.c obviously πŸ‘€ and then the whole friend group:

go read them. iykyk πŸ”₯


πŸ“ a lil sign-off πŸ“

this page lives under ./fs/nfsd and it's dated October 2026 β€” so yeah, technically a future icon πŸ‘‘πŸ’œ anyway bestie, go flush those caches, drink some water, and remember: bit 0 is svc_export, bit 1 is expkey. mwah πŸ«ΆπŸ’–

πŸ“¦ where this page comes from