xdr_reset_scratch_buffer(9)
π xdr_reset_scratch_buffer β a Kernel API Manual moment, bestie π
okay so we're in the Kernel API Manual today and this page is short but honestly? iconic. it's giving "one job, does it well" energy. π
β¨ NAME β¨
xdr_reset_scratch_buffer β clear the scratch buffer info π§Ήβ¨
like, it resets. the scratch buffer. the information about it. no cap.
πΈ SYNOPSIS πΈ
void xdr_reset_scratch_buffer (struct xdr_stream *xdr );
that's it. that's the whole thing. returns nothing (void), takes one pointer, and honestly it ate. π
π¦ ARGUMENTS π¦
xdrβ a pointer to astruct xdr_streamπ«Ά just hand over your lil stream struct and let it do its thing.
π DESCRIPTION π
okay so lowkey the description here is literally just... go look at xdr_set_scratch_buffer. that's the whole vibe. π the manpage is not gonna elaborate, bestie, it's pointing you at the sibling function and trusting you to handle it. main character delegation energy fr fr. π
no extra lore here β the original genuinely just says "See xdr_set_scratch_buffer." so that's what we're saying too. π
π SEE ALSO π
bestie there is a LOT here. the whole xdr extended family showed up to the group chat. π
first up, the actual file this all lives in:
Kernel file ./include/linux/sunrpc/xdr.h π
and now the whole squad, in order:
xdr_set_scratch_buffer(9)xdr_set_scratch_folio(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_opaque_inline(9)xdr_stream_decode_uint32_array(9)
like literally all of them. encode girlies, decode girlies, size girlies, presence-check girlies β everyone's invited π«Άβ¨
and that's the page, babes π this one came from ./include/linux/sunrpc, dated October 2026, and it's xdr_reset_scratch_buffer(9) forever and always. slay, stay hydrated, and may your scratch buffers always be clear ππ§ββοΈπ
π¦ 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