nfsd4_encode_opaque(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to nfsd4_encode_opaque(9) from the Kernel API Manual ✨ β€” this is the page for encoding a variable-length XDR opaque type result, and honestly the way it handles opaque bytes is lowkey iconic. No cap. πŸ’…


✨ SYNOPSIS ✨

__be32 nfsd4_encode_opaque (struct xdr_stream *xdr , const void *data ,
       size_t size );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • xdr β€” the target XDR stream, aka where the encoding lands ✨
  • data β€” a pointer to data, fr fr
  • size β€” length of data in bytes πŸŽ€

🌸 DESCRIPTION 🌸

Return values, and yes we're keeping receipts:

  • nfs_ok β€” data encoded; xdr advanced to next position. slay πŸ’…
  • nfserr_resource β€” stream buffer space exhausted. not the vibe 😭

πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./fs/nfsd/xdr4.h has the whole crew:

Those are your besties for adjacent encode duties, iykyk 🫢


cute sign-off: sending kisses from the ./fs/nfsd source corner, stamped October 2026, and this whole page is nfsd4_encode_opaque(9) β€” periodt πŸ’–βœ¨

πŸ“¦ where this page comes from