svcxdr_encode_opaque_pages(9)
π 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β thexdr_streamto 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 inpages. where the data actually starts, iykyk.lenβ number of data bytes inpagesto insert. not all of them! justlenof 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):
svc_serv_maxpages(9)svc_thread_should_stop(9)svc_thread_init_status(9)svc_rqst_page_release(9)svcxdr_init_decode(9)svcxdr_init_encode(9)svcxdr_set_auth_slack(9)svcxdr_set_accept_stat(9)
π real talk though: this page is filed under./include/linux/sunrpcand it's dated October 2026, and the page herself issvcxdr_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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms