xdr_stream_...paque_inline(9)
πΈ NAME πΈ
okay bestie, welcome to xdr_stream_...paque_inline(9) from the Kernel API Manual π the main character is xdr_stream_decode_opaque_inline, and she is here to decode variable length opaque xdr data. no cap.
β¨ SYNOPSIS β¨
the whole signature, untouched, because we do not mess with the source:
ssize_t xdr_stream_decode_opaque_inline (struct xdr_stream *xdr , void
**ptr , size_t maxlen );
π ARGUMENTS π
xdrβ pointer toxdr_stream. that's the stream we're reading from, bestie.ptrβ location to store pointer to opaque data. this is where the pointer goes, not the data itself πmaxlenβ maximum acceptable object size. respect the limit, fr fr.
β οΈ NOTE β οΈ
okay so this is the big one: the pointer stored inptrcannot be assumed valid after the XDR buffer has been destroyed, or even after callingxdr_inline_decodeonxdr. π it is therefore expected that the object it points to should be processed immediately. do not save it for later, just process it right away π«Ά
π₯ RETURN π₯
On success, returns size of object stored in *ptr. -EBADMSG on XDR buffer overflow. -EMSGSIZE if the size of the object would exceed maxlen. that's the whole return vibe, periodt β¨
π¦ SEE ALSO π¦
the kernel file is ./include/linux/sunrpc/xdr.h, and the whole squad is:
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_fixed(9)xdr_stream_decode_uint32_array(9)
ciao for now π source/version: ./include/linux/sunrpc Β· date: October 2026 Β· page: xdr_stream_...paque_inline(9)
π¦ 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