nfsd_nl_unlock_export_doit(9)
π nfsd_nl_unlock_export_doit(9) π
ok so this is a page from the Kernel API Manual, bestie, and today's main character is nfsd_nl_unlock_export_doit β yes that's a mouthful, we're gonna get through it together π«Ά
β¨ NAME β¨
nfsd_nl_unlock_export_doit β revoke NFSv4 state for an export path
like, it goes in and just. takes the state away. for a path. iconique π
πΈ SYNOPSIS πΈ
int nfsd_nl_unlock_export_doit (struct sk_buff *skb , struct genl_info
*info );
two args, both pointers, very demure β¨
π ARGUMENTS π
skbβ the reply buffer. it's where the answer goes back out πinfoβ the netlink metadata and the command arguments. yes, both. it's giving multitasking π
π¦ DESCRIPTION π¦
okay so picture this: there's an export path, and over time all kinds of NFSv4 state has piled up on it β opens, locks, delegations, layouts β and it doesn't matter which client is holding onto it, honestly, we are not doing the whole "whose is whose" thing today π
this function revokes all of it. all the NFSv4 state acquired through any export of the given path. periodt π₯
who calls it? userspace does β specifically exportfs -u β and it sends this command after removing the last client for a path, so the underlying filesystem can finally be unmounted. the vibe check passes, the fs gets to go home π
β οΈ lowkey important comparison coming: this is not the same as NFSD_CMD_UNLOCK_FILESYSTEM, which operates at superblock granularity. that one's out here doing whole-superblock things. this one is way more targeted β it revokes only the state associated with exports of a specific path. narrower scope, same energy π
β RETURN β
0 on success, or a negative errno. that's it, that's the whole story π
π SEE ALSO π
- Kernel file
./fs/nfsd/nfsctl.c 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_cache_flush_doit(9)nfsd_nl_server_stats_get_dumpit(9)nfsd_nl_unlock_ip_doit(9)nfsd_nl_unlock_filesystem_doit(9)nfsd_net_init(9)nfsd_net_pre_exit(9)nfsd_net_exit(9)
like, the whole friend group showed up to the function's birthday party, no cap π
and that's the page!! π§ this one lives in ./fs/nfsd and it's dated October 2026 β mark your calendar bestie, and remember: nfsd_nl_unlock_export_doit(9), always and forever ππβ¨
π¦ 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