xdr_enter_page(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xdr_enter_page β€” NAME

okay so this is xdr_enter_page from the Kernel API Manual (section 9, bestie, kernel-land), and what it does is decode data from the XDR page. that's the whole vibe. πŸ¦‹

✨ SYNOPSIS ✨

void xdr_enter_page (struct xdr_stream *xdr , unsigned int len );

like, it returns void, it takes two things, and yes the spacing in that signature is exactly that. no notes. πŸŽ€

🌸 ARGUMENTS 🌸

  • xdr β€” pointer to xdr_stream struct. your stream, your main character. πŸ‘‘
  • len β€” number of bytes of page data. the count. the amount. the len. ✨

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea πŸ“ β€” this function moves data beyond the current pointer position from the XDR head[] buffer into the page list. the way that works is genuinely iconic.

any data that lies beyond current position + len bytes gets moved into the XDR tail[]. that's the overflow, that's the leftovers, and it's handled. 🫢

and then, after all that shuffling, the current pointer is repositioned at the beginning of the first XDR page. tadah. slay. πŸ’…

fr fr this is all about the pointer going from the head buffer to the pages, with the tail catching whatever doesn't fit before position + len. no cap. πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

the whole friend group, iykyk πŸ’œ β€” and yes, the kernel file itself lives at ./net/sunrpc/xdr.c:


and that's the page!! 🧚 mwah πŸ’‹ β€” this one ships out of ./net/sunrpc and it's dated October 2026, so like, future-coded but make it kernel. ⭐🌈

πŸ“¦ where this page comes from