nfs4_inode_...ion_on_close(9)
π nfs4_inode_return_delegation_on_close β a totally chill guide from the Kernel API Manual π
okay so bestie, welcome to the Kernel API Manual, and today's main character is nfs4_inode_return_delegation_on_close(9). don't let the long name scare you, she's actually pretty straightforward. let's get into it β¨
β¨ NAME β¨
nfs4_inode_return_delegation_on_close β asynchronously return a delegation π¦
like, you close the file, and the delegation gets handed back. asynchronously. she's not waiting around. periodt π
πΈ SYNOPSIS πΈ
void nfs4_inode_return_delegation_on_close (struct inode *inode );
that's it. one arg. one void. no return value. she does her thing and dips π
π ARGUMENTS π
inodeβ the inode to process π«Ά like, this is the file-inode-thingy you're handing over to get looked at. that's the whole vibe.
π DESCRIPTION π
so here's the tea β β this routine gets called on file close, and its whole job is to figure out whether the inode's delegation needs to be returned immediately. that's it. that's the gig. she's the vibe-check-at-the-door for delegations π
no cap, that's literally the entire description. short and iconic. not every function needs a whole essay, yk? π
π SEE ALSO π
okay so if you liked this one (and why wouldn't you), here's the whole friend group π all of these live in the kernel file ./fs/nfs/delegation.c:
nfs_mark_delegation_referenced(9)nfs4_have_delegation(9)nfs_inode_reclaim_delegation(9)nfs_inode_set_delegation(9)nfs_client_return_marked_delegations(9)nfs_inode_evict_delegation(9)nfs4_inode_return_delegation(9)nfs4_inode_set_return_delegation_on_close(9)nfs4_inode_make_writeable(9)nfs_expire_all_delegations(9)nfs_server_return_all_delegations(9)nfs_remove_bad_delegation(9)nfs_expire_unreferenced_delegations(9)nfs_async_inode_return_delegation(9)nfs_delegation_find_inode(9)nfs_delegation_mark_reclaim(9)nfs_delegation_reap_unclaimed(9)nfs_mark_test_expired_all_delegations(9)nfs_test_expired_all_delegations(9)nfs_reap_expired_delegations(9)nfs_delegations_present(9)nfs4_refresh_delegation_stateid(9)nfs4_copy_delegation_stateid(9)nfs4_delegation_flush_on_close(9)
literally the whole delegation cinematic universe, iykyk π
ngl bestie, this page is short but she ate. one function, one job, zero drama π₯
and that's a wrap!! π this gem lives in ./fs/nfs and it's dated October 2026 β so go forth and return those delegations, you absolute icon πππ
π¦ 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