xdr_stream_e...uint32_array(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to xdr_stream 🫢 that's your stream, the main character of this whole operation
  • array β€” array of integers, the actual data you're yeeting into the encoder
  • array_size β€” number of elements in array, 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:


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