xdr_stream_e...opaque_fixed(9)
okay so bestie, welcome to xdr_stream_e...opaque_fixed(9), the Kernel API Manual page for one very specific little encoder. π This one is literally about encoding fixed length opaque xdr data, and it's giving "I have a stream, I have a pointer, I have a length, let's go" energy. β¨
π NAME π
xdr_stream_encode_opaque_fixed β Encode fixed length opaque xdr data π
β¨ SYNOPSIS β¨
ssize_t xdr_stream_encode_opaque_fixed (struct xdr_stream *xdr , const
void *ptr , size_t len );
π«Ά ARGUMENTS π«Ά
xdrβ pointer toxdr_streamπ¦ptrβ pointer to opaque data object πlenβ size of object pointed to byptrπΈ
π₯ RETURN π₯
On success, this returns the length in bytes of XDR buffer consumed. π If the XDR buffer overflows, it returns -EMSGSIZE. π
no cap: that's the success return and the overflow error, exactly as advertised. π«Ά
π SEE ALSO π
Kernel file: ./include/linux/sunrpc/xdr.h. The related function besties are 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(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_opaque_inline(9), xdr_stream_decode_uint32_array(9). π
cute sign-off: this page is from source/version ./include/linux/sunrpc, dated October 2026, and it's serving xdr_stream_e...opaque_fixed(9) title energy at the very end. πβ¨
π¦ 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