xdr_init_encode_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xdr_init_encode_pages πŸ’…

ok so this is a page straight out of the Kernel API Manual (section 9, the kernel-API girlies), and bestie, we are talking about xdr_init_encode_pages β€” the glow-up ritual that gets an xdr_stream all set up and ready to encode stuff into pages. yes, pages. we love a page-based moment. πŸ¦‹


✨ NAME ✨

xdr_init_encode_pages β€” lowkey the "get ready with me" of XDR encoding: it initializes an xdr_stream for encoding into pages πŸŽ€


πŸ’« SYNOPSIS πŸ’«

void xdr_init_encode_pages (struct xdr_stream *xdr , struct xdr_buf *buf
);

πŸŽ€ ARGUMENTS πŸŽ€

  • xdr β€” pointer to an xdr_stream struct. that's the little stream baddie you're about to set up ✨
  • buf β€” pointer to the XDR buffer into which to encode data. it's literally the destination, the main character, the place your data is going 🫢

i mean that's it. two pointers. she's simple, she's effective, she's iconic. πŸ’…


🌈 SEE ALSO 🌈

bestie this is the part where you meet the whole friend group 😭 every one of these lives in the kernel file ./net/sunrpc/xdr.c β€” go say hi:


ngl the whole list is giving "read the source, bestie" energy, so yeah β€” ./net/sunrpc, that's the home base, iykyk πŸ’€βœ¨

okay and that's the whole page!! she's short, she's sweet, and she's brought to you by the folks at ./net/sunrpc, dated October 2026 β€” go forth and encode those pages, queen πŸ‘‘πŸ’–

πŸ“¦ where this page comes from