xdr_read_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to xdr_read_pages(9) from the Kernel API Manual πŸ’– this one is literally about aligning page-based XDR data to the current pointer position, and it's lowkey iconic. no cap.

🌸 NAME 🌸

xdr_read_pages β€” align page-based XDR data to current pointer position ✨

πŸŽ€ SYNOPSIS πŸŽ€

unsigned int xdr_read_pages (struct xdr_stream *xdr , unsigned int len );

πŸ’… ARGUMENTS πŸ’…

  • xdr β€” pointer to xdr_stream struct. slay.
  • len β€” number of bytes of page data. periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the vibe: this function moves data beyond the current pointer position from the XDR head[] buffer into the page list. any data that lies beyond current position + len bytes gets moved into the XDR tail[]. then the xdr_stream current position is advanced past that data so it aligns to the next XDR object in the tail.

and the return? it returns the number of XDR encoded bytes now contained in the pages. that's the whole flex πŸ’…

🌈 SEE ALSO 🌈

Kernel file ./net/sunrpc/xdr.c is the home base, and the whole crew is:

mwah πŸ’‹ β€” source/version ./net/sunrpc, dated October 2026, and this page is xdr_read_pages(9). byeee 🫢

πŸ“¦ where this page comes from