nfsd4_encode..._attr_change(9)
π 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 thefattr4into. This is where the bytes go, periodt β¨dpβ the delegation where the event actually happened π«nfβ thenfsd_filethat'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 π
NULLif there were no requested attributes to report β in that case the caller should omit the event entirely π- An
ERR_PTRif 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 π
- Kernel file
./fs/nfsd/nfs4xdr.c svcxdr_tmpalloc(9)nfsd4_decode_bitmap4(9)nfsd4_encode_notify_event(9)nfsd4_encode_replay(9)
β 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
- 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