xdr_stream_e...uint32_array(9)
π xdr_stream_encode_uint32_array(9) β like, the full glow-up
okay so bestie, welcome to the Kernel API Manual β¨ this is the page for xdr_stream_e...uint32_array(9), and yes that truncated little title is exactly how it shows up in the header, iykyk πΈ
β¨ NAME β¨
xdr_stream_encode_uint32_array β encode a variable length array of integers π
Like, it takes your whole cute little array of ints and XDR-encodes it. No cap, that's the whole job.
π¦ SYNOPSIS π¦
ssize_t xdr_stream_encode_uint32_array (struct xdr_stream *xdr , const
__u32 *array , size_t array_size );
πΈ ARGUMENTS πΈ
xdrβ pointer toxdr_streamπ«Ά that's your stream, the main character of this whole operationarrayβ array of integers, the actual data you're yeeting into the encoderarray_sizeβ number of elements inarray, so it knows how many of them there are π
π RETURN π
On success, returns the length in bytes of XDR buffer consumed β and on XDR buffer overflow you get -EMSGSIZE π so watch out for that one, it's giving "not enough room bestie".
π SEE ALSO π
The kernel file ./include/linux/sunrpc/xdr.h is where all this lives π and here's the whole friend group, fr fr:
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_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)
lowkey obsessed with how the decode version is just sitting there at the end of that list, xdr_stream_decode_uint32_array(9), matching energy π₯
and that's the page babes π it ships from ./include/linux/sunrpc, dated October 2026, and it's literally signed xdr_stream_e...uint32_array(9) at the bottom β iconic, no notes π§ββοΈβ¨
π¦ 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