xdr_commit_encode(9)
β¨ xdr_commit_encode(9) β¨
okay bestie, welcome to the Kernel API Manual β this is xdr_commit_encode(9), and honestly it's a little function with main character energy π
πΈ NAME πΈ
xdr_commit_encode β bestie, it makes sure all the data is actually written to xdr->buf π
no cap, that's the whole job.
π¦ SYNOPSIS π¦
void xdr_commit_encode (struct xdr_stream *xdr );
π ARGUMENTS π
xdrβ a pointer to thexdr_stream, iykyk. that's the thing you're working with π«Ά
π DESCRIPTION π
so here's the vibe π you know how encoding can justβ¦ wander across page boundaries? like, rude. this function handles that by giving the caller a temporary location to write into, and then later it copies the data into place β like, it literally moves in later, no big deal π
and the copying part? that's __xdr_commit_encode doing it. it's giving backstage crew energy fr fr β invisible but iconic π
π SEE ALSO π
Kernel file ./include/linux/sunrpc/xdr.h, plus literally the entire friend group:
xdr_set_scratch_buffer(9)xdr_set_scratch_folio(9)xdr_reset_scratch_buffer(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)
π«Ά that's the whole page bestie, go commit some encoding β¨
from./include/linux/sunrpc, dated October 2026 β mwah,xdr_commit_encode(9)out ππ
π¦ 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