hash_delegation_locked(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 the nfs4_delegation we are adding. yes, this is the delegation itself, the main character πŸ‘‘
  • fp β€” a pointer to the nfs4_file we'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:

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