nfs4_refres...tion_stateid(9)
π nfs4_refresh_delegation_stateid β the Kernel API Manual glow-up β¨
ok so bestie, we're in the Kernel API Manual today and the main character of this page is nfs4_refresh_delegation_stateid(9). she's a tiny function with a big job and honestly? she ate. let's get into it π
β¨ NAME β¨
nfs4_refresh_delegation_stateid β update that delegation stateid seqid π¦
πΈ SYNOPSIS πΈ
bool nfs4_refresh_delegation_stateid (nfs4_stateid *dst , struct inode
*inode );
she takes two things and returns a bool. no cap, that's the whole signature. π«Ά
π§ ARGUMENTS π§
dstβ the stateid you wanna refresh, bestie. go off, glow her up β¨inodeβ the inode you're checking against. the vibe check target π
π DESCRIPTION π
ok so here's the tea β β this function returns "true" and updates dst->seqid * if the inode had a delegation that matches our delegation stateid. like, it found its match, it's giving soulmate energy π
otherwise? "false" gets returned. no match, no update, we move on π periodt.
lowkey an icon: one glance at the inode, either she refreshes the seqid or she simply says no. π§ββοΈ
π₯ SEE ALSO π₯
the whole delegation friend group, fr fr β they all live in the Kernel file ./fs/nfs/delegation.c and honestly the way they all link up is so iconic π
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_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_copy_delegation_stateid(9)nfs4_delegation_flush_on_close(9)
and that's the whole page, bestie π this masterpiece lives over in ./fs/nfs, dated October 2026, and she's serving the nfs4_refres...tion_stateid(9) realness from start to finish π 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