svcxdr_encode_opaque_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… svcxdr_encode_opaque_pages β€” Kernel API Manual, bestie edition

okay so picture this: it's giving kernel internals, it's giving SunRPC, and honestly? we're obsessed. This one is called svcxdr_encode_opaque_pages, and no cap, it's the girl that shoves pages into an xdr_stream. Periodt. πŸŽ€


✨ NAME ✨

svcxdr_encode_opaque_pages β€” insert pages into an xdr_stream, literally her whole job πŸ’–


🌸 SYNOPSIS 🌸

void svcxdr_encode_opaque_pages (struct svc_rqst *rqstp , struct
       xdr_stream *xdr , struct page **pages , unsigned int base , unsigned int
       len );

like. she takes five args and returns void. she does not give anything back. main character energy tbh πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • rqstp β€” okay so this one is lowkey mystery girl. the original says "-- undescribed --", and honestly? we respect the privacy. πŸ™ˆ that's exactly what it says, bestie, i'm not making stuff up.
  • xdr β€” the xdr_stream to be updated. she's the one getting a glow-up here ✨
  • pages β€” array of pages to insert. the girlies being added to the mix πŸ’…
  • base β€” starting offset of first data byte in pages. where the data actually starts, iykyk.
  • len β€” number of data bytes in pages to insert. not all of them! just len of them. important 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the vibe check: after the pages are added, the tail iovec is instantiated pointing to end of the head buffer, and the stream is set up to encode subsequent items into the tail. πŸ¦‹

that's it. that's the whole deal. pages go in, tail iovec gets instantiated pointing to the end of the head buffer, and the stream is all set up to encode subsequent items into the tail. she ate and left no crumbs πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

kernel file ./include/linux/sunrpc/svc.h β€” go read her, fr fr 🌈

and her friends, the whole friend group, all (9):


πŸ’€ real talk though: this page is filed under ./include/linux/sunrpc and it's dated October 2026, and the page herself is svcxdr_encode_opaque_pages(9). so if anyone asks, that's the receipt. 🧚

anyway bestie, that's the whole page β€” stay hydrated, read your (9) pages, and remember: the tail iovec points to the end of the head buffer. mwah! πŸ’‹πŸ“πŸŒˆβ­

πŸ“¦ where this page comes from