nfsd_nl_cache_flush_doit(9)
π 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_MASKis provided, then only the caches indicated by the bitmask get flushed π―- bit 0 =
svc_export - bit 1 =
expkey
- bit 0 =
- if it's omitted? she flushes both. no crumbs left. periodt. π§½
and the return situation:
- returns
0on success π - returns a negative
errnoif something goes sideways π
ngl, that's the whole contract β success is0, failure is negativeerrno, 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:
nfsd_nl_rpc_status_get_dumpit(9)nfsd_nl_fh_key_set(9)nfsd_nl_threads_set_doit(9)nfsd_nl_threads_get_doit(9)nfsd_nl_version_set_doit(9)nfsd_nl_version_get_doit(9)nfsd_nl_validate_listeners(9)nfsd_nl_listener_set_doit(9)nfsd_nl_listener_get_doit(9)nfsd_nl_pool_mode_set_doit(9)nfsd_nl_pool_mode_get_doit(9)nfsd_nl_server_stats_get_dumpit(9)nfsd_nl_unlock_ip_doit(9)nfsd_nl_unlock_filesystem_doit(9)nfsd_nl_unlock_export_doit(9)nfsd_net_init(9)nfsd_net_pre_exit(9)nfsd_net_exit(9)
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
- 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