xdr_stream_d...opaque_fixed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

xdr_stream_decode_opaque_fixed β€” decodes fixed-length opaque xdr data, bestie. That's the whole vibe. Like, it just pulls out a chunk of opaque data of a set size and slaps it where you tell it to. No cap. ✨

Oh and real quick β€” this is all from the Kernel API Manual, section 9, iykyk. πŸŽ€


🌸 SYNOPSIS 🌸

ssize_t xdr_stream_decode_opaque_fixed (struct xdr_stream *xdr , void
*ptr , size_t len );

✨ ARGUMENTS ✨

  • xdr β€” pointer to xdr_stream. The stream you're decoding from, the main character of this whole operation. 🫢
  • ptr β€” location to store data. Like, the spot where the decoded goodies actually land. πŸ‘‘
  • len β€” size of buffer pointed to by ptr. Gotta tell it how much room you've got, fr fr. πŸ“

πŸ’– RETURN πŸ’–

  • 0 on success. Slay. βœ…
  • -EBADMSG on XDR buffer overflow. 😭 That's the "bestie it went wrong" number β€” your buffer just couldn't hold it.

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./include/linux/sunrpc/xdr.h, plus the whole friend group:


The decode_opaque_fixed cousin to encode_opaque_fixed up there β€” they're literally siblings, and yes, both got invited to the function party. πŸŽ‰

And that's the page, bestie! πŸ“ Big shoutout to ./include/linux/sunrpc for the source and October 2026 for the date β€” mwah πŸ’‹, couldn't have done it without ya! πŸ§šβ€β™€οΈπŸ’œ

πŸ“¦ where this page comes from