xdr_stream_remaining(9)
π« xdr_stream_remaining β the manual page, but make it make sense π«
okay so bestie, picture this: you're deep in the kernel, you're poking at a struct xdr_stream, and you just need to know how much room is left in there. That's literally the whole plot. This is xdr_stream_remaining, a page from the Kernel API Manual, and it is exactly as iconic as it sounds. π
πΈ NAME πΈ
xdr_stream_remaining β returns the number of bytes remaining in the stream. that's it. that's the function. she's a one-job girlie and she ATE. β¨
π¦ SYNOPSIS π¦
size_t xdr_stream_remaining (const struct xdr_stream *xdr );
yep, that's the whole signature. size_t out, a const struct xdr_stream * in. clean, simple, no drama. π
π ARGUMENTS π
xdrβ pointer tostruct xdr_stream. that's the stream we're vibing with. she'sconst, so hands off, we're just looking. π
β RETURN β
the number of bytes remaining in xdr before xdr->end. like, how much runway is left before you hit the end of the stream. fuel gauge energy. π₯
π SEE ALSO π
bestie this list is LONG, so buckle up. these all live in the Kernel file ./include/linux/sunrpc/xdr.h, and they're all in the same friend group:
xdr_set_scratch_buffer(9)xdr_set_scratch_folio(9)xdr_reset_scratch_buffer(9)xdr_commit_encode(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_opaque_inline(9)xdr_stream_decode_uint32_array(9)
like I said. whole friend group. go say hi. π«Ά
okay that's the page!! sourced from ./include/linux/sunrpc, dated October 2026, and this is xdr_stream_remaining(9) signing off π mwah, go read your xdr headers, ily, bye!! π§β¨
π¦ 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