hash_delegation_locked(9)
π hash_delegation_locked(9) π
okay so this is a page from the Kernel API Manual, section 9, and bestie, it's a little one but she's important. buckle up π
β¨ NAME β¨
hash_delegation_locked β adds a delegation to the appropriate lists. that's it, that's the whole vibe. she hashes, she files, she slays π
β¨ SYNOPSIS β¨
int hash_delegation_locked (struct nfs4_delegation *dp , struct nfs4_file *fp );
β¨ ARGUMENTS β¨
dpβ a pointer to thenfs4_delegationwe are adding. yes, this is the delegation itself, the main character πfpβ a pointer to thenfs4_filewe're granting a delegation on. this is the file she's getting attached to, like a little buddy system π«Ά
β¨ RETURN β¨
On success: NULL if the delegation was successfully hashed. that's a win, no cap π
β¨ DESCRIPTION β¨
On error: -EAGAIN if one was previously granted to this nfs4_client for this nfs4_file. Delegation is not hashed. π so yeah, if somebody already got one for that file, you do not pass go, you do not hash, you get the -EAGAIN and you go home. it's giving "we already have one at home" energy fr fr.
heads up bestie, the success case lives up in RETURN and the error case lives down here in DESCRIPTION on this page. that's just how the original is laid out β don't come for me, I'm just the messenger π
β¨ SEE ALSO β¨
Kernel file ./fs/nfsd/nfs4state.c and honestly the whole friend group:
nfs4_delegation_exists(9)revoke_delegation(9)nfs4_replay_free_cache(9)nfsd4_revoke_states(9)nfsd4_revoke_export_states(9)nfsd_slot_shrinker_count(9)nfsd_slot_shrinker_scan(9)nfsd4_put_client(9)nfsd_wait_for_delegreturn(9)nfsd_breaker_owns_lease(9)nfsd4_deleg_lm_open_conflict(9)nfsd4_process_open2(9)nfsd4_force_end_grace(9)nfs4_preprocess_stateid_op(9)nfs4_preprocess_seqid_op(9)nfsd4_release_lockowner(9)nfsd4_vet_deleg_time(9)nfsd4_deleg_getattr_conflict(9)nfsd_get_dir_deleg(9)nfsd_update_cmtime_attr(9)
like, that's a lot of friends and I love that for her πΈ
and that's the page!! this one lives in ./fs/nfsd, it's dated October 2026, and it's filed under hash_delegation_locked(9) β mwah, go read your man pages, ily, bye π¦π
π¦ 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