xdr_set_pagelen(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– xdr_set_pagelen(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, you're in the Kernel API Manual section and the function we're stanning today is xdr_set_pagelen(9) β€” yes that's her name, she sets the length of the XDR pages, and honestly? iconic behavior. let's get into it πŸ’…


✨ NAME ✨

xdr_set_pagelen β€” sets the length of the XDR pages 🌸


✨ SYNOPSIS ✨

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

that's the whole vibe. no cap, that's it. 🫢


✨ ARGUMENTS ✨

  • xdr β€” pointer to the xdr_stream struct 🧚 like, the stream we're messing with, bestie
  • len β€” the new length of the XDR page data πŸ“ the actual number of bytes we want pagelen to be

✨ DESCRIPTION ✨

so the whole gig is this: xdr_set_pagelen either grows or shrinks the length of the xdr pages by setting pagelen to len bytes. both directions are valid, it's giving versatile πŸ‘‘

here's the deets, and don't skip them:

  • when shrinking, any extra data is moved into buf->tail πŸ¦‹
  • when growing, any data beyond the current pointer is moved into the tail 🌈

and the return situation? the page says it returns True if the operation was successful, and False otherwise. periodt. (yes the synopsis says void and the description talks about returns β€” not me noticing, not me saying anything, we're just reporting the facts as written πŸ™ˆ the docs said what they said, iykyk πŸ’€)

lowkey important: this is a kernel API page, so treat those True/False words as the official text. don't @ me, @ the source πŸŽ€

✨ SEE ALSO ✨

the source file lives at kernel file ./net/sunrpc/xdr.c, and the whole friend group is here β€” literally the entire group chat, no one left out:


and that's the page, bestie πŸ’œ go forth and set those page lengths responsibly. this came to you from ./net/sunrpc, October 2026 β€” mwah, signing off πŸ«Άβœ¨πŸŽ€

πŸ“¦ where this page comes from