xdr_commit_encode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the xdr_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:


🫢 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