nfsd4_encode_notify_event(9)
π nfsd4_encode_notify_event β from the Kernel API Manual, bestie π
okay so this page is nfsd4_encode_notify_event(9) and it lives in the Kernel API Manual, which honestly is giving "backstage pass to the kernel" energy β¨
πΈ NAME πΈ
nfsd4_encode_notify_event β encode a notify π
π¦ SYNOPSIS π¦
u8 * nfsd4_encode_notify_event (struct xdr_stream *xdr , struct
nfsd_notify_event *nne , struct nfs4_delegation *dp , struct nfsd_file
*nf , u32 *notify_mask );
like, five whole parameters. she's high maintenance but she's worth it π
π ARGUMENTS π
xdrβ the stream to which to encode thefattr4. that's where the bytes are going, bestie π«Άnneβ thenfsd_notify_eventto encode. she's the main character of this whole operation πdpβ the delegation where the event occurred π¦nfβ thenfsd_fileon which the event occurred πnotify_maskβ pointer to the word where the notification mask should be set. lowkey important π₯
β DESCRIPTION β
so basically: encode nne into xdr. that's the vibe. π§
and on success? the matching bit in notify_mask gets set. periodt. β¨
π RETURN π
a pointer to the start of the encoded event β or NULL if the event could not be encoded π (ngl, that's the sad path, but at least you know fr fr)
π₯ SEE ALSO π₯
- Kernel file
./fs/nfsd/nfs4xdr.c svcxdr_tmpalloc(9)nfsd4_decode_bitmap4(9)nfsd4_encode_dir_attr_change(9)nfsd4_encode_replay(9)
like a little friend group of encoder/decoder functions π«Ά go read them, iykyk π
a gentle reminder, bestie: check that return value. NULL means it did not slay π
okay that's the whole page!! so this icon was brought to you by ./fs/nfsd, and the date on it is October 2026 β future vibes fr fr ππ¦β ily, go encode responsibly ππ
π¦ 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