xdr_stream_d...opaque_fixed(9)
π 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 toxdr_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 byptr. Gotta tell it how much room you've got, fr fr. π
π RETURN π
0on success. Slay. β-EBADMSGon 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:
xdr_set_scratch_buffer(9)xdr_set_scratch_folio(9)xdr_reset_scratch_buffer(9)xdr_commit_encode(9)xdr_stream_remaining(9)xdr_align_size(9)xdr_pad_size(9)xdr_stream_encode_item_present(9)xdr_stream_encode_item_absent(9)xdr_encode_bool(9)xdr_stream_encode_bool(9)xdr_stream_encode_u32(9)xdr_stream_encode_be32(9)xdr_stream_encode_u64(9)xdr_stream_encode_opaque_inline(9)xdr_stream_encode_opaque_fixed(9)xdr_stream_encode_opaque(9)xdr_stream_encode_uint32_array(9)xdr_item_is_absent(9)xdr_item_is_present(9)xdr_stream_decode_bool(9)xdr_stream_decode_u32(9)xdr_stream_decode_be32(9)xdr_stream_decode_u64(9)xdr_stream_decode_opaque_inline(9)xdr_stream_decode_uint32_array(9)
Thedecode_opaque_fixedcousin toencode_opaque_fixedup 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
- 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