nfsd4_encode..._attr_change(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

nfsd4_encode_dir_attr_change β€” bestie, the original literally leaves this one blank (no cap, there's just a dash and then πŸ¦— crickets), so we're all just vibing with the function name and the synopsis below. It's giving mysterious. It's giving "read the next section."

This page lives in the Kernel API Manual ✨ (the manual name is nfsd4_encode..._attr_change(9), yes with the lil dots, that's not a typo, that's just how she's listed πŸ‘‘).


🌸 SYNOPSIS 🌸

u8 * nfsd4_encode_dir_attr_change (struct xdr_stream *xdr , struct
nfs4_delegation *dp , struct nfsd_file *nf );

Three args, one return pointer, let's go πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • xdr β€” the stream we're encoding the fattr4 into. This is where the bytes go, periodt ✨
  • dp β€” the delegation where the event actually happened πŸ’«
  • nf β€” the nfsd_file that's opened on the directory πŸ—‚οΈ

πŸ’– DESCRIPTION πŸ’–

Okay so literally all this does: encode a dir attr change event. That's it. That's the whole job. Short and iconic, lowkey the most efficient description on the whole system 🫢


πŸ”₯ RETURN πŸ”₯

Three possible outcomes, and you gotta know which is which, iykyk:

  • A pointer to the start of the encoded event on success β€” slay, we ate πŸ’…
  • NULL if there were no requested attributes to report β€” in that case the caller should omit the event entirely πŸ™ˆ
  • An ERR_PTR if the event was requested but could not be marshalled into xdr β€” and in that case the caller should recall the delegation 😭 (yes, that's the dramatic one, don't ignore it)
bestie pls actually check which of the three you got, because "omit the event" and "recall the delegation" are very different vibes πŸ’€

🌈 SEE ALSO 🌈


⭐ and that's the page!! source is ./fs/nfsd, dated October 2026 β€” go off, kernel docs, we'll see you in the future πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from