xdr_inline_pages(9)
π xdr_inline_pages(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is xdr_inline_pages, and honestly? she's the one who sets up the vibe before the big reply even shows up π
πΈ NAME πΈ
xdr_inline_pages β prep the receive buffer so a large reply has somewhere cute to land π
β¨ SYNOPSIS β¨
void xdr_inline_pages (struct xdr_buf *xdr , unsigned int offset ,
struct page **pages , unsigned int base , unsigned int len );
no cap, that's the whole signature β she takes it and she returns void (iconic, unbothered, gives nothing back π
).
π¦ ARGUMENTS π¦
xdrβ thexdr_bufthat's gonna get the reply dropped into it. the vessel. the destination. the moment. πoffsetβ the expected offset (in bytes, always bytes) where the data payload kicks off. like, where the actual content starts. lowkey important π«Άpagesβ a vector ofstruct pagepointers. yes, the whole squad, all lined up πbaseβ offset inside the first page where the receive should begin, measured in bytes. yes, in bytes. bestie the manpage says it twice for a reason πlenβ the expected size of the upper layer data payload, in bytes. that's how much room we're reserving for the queen's entrance π
π₯ SEE ALSO π₯
the manpage literally points at the kernel file ./net/sunrpc/xdr.c β go read it, iykyk π§ and then there's the whole extended friend group, fr fr:
xdr_encode_opaque_fixed(9)xdr_encode_opaque(9)xdr_terminate_string(9)xdr_buf_to_bvec(9)xdr_buf_to_sg(9)xdr_buf_to_sg_alloc(9)_shift_data_left_pages(9)_shift_data_right_pages(9)_copy_to_pages(9)_copy_from_pages(9)xdr_buf_pages_zero(9)xdr_shrink_bufhead(9)xdr_shrink_pagelen(9)xdr_stream_pos(9)xdr_page_pos(9)xdr_init_encode(9)xdr_init_encode_pages(9)__xdr_commit_encode(9)xdr_reserve_space(9)xdr_reserve_space_vec(9)xdr_truncate_encode(9)xdr_truncate_decode(9)xdr_restrict_buflen(9)xdr_write_pages(9)xdr_init_decode(9)xdr_init_decode_pages(9)xdr_finish_decode(9)xdr_inline_decode(9)xdr_read_pages(9)xdr_set_pagelen(9)xdr_enter_page(9)xdr_buf_subsegment(9)xdr_stream_subsegment(9)xdr_stream_move_subsegment(9)xdr_stream_zero(9)xdr_buf_trim(9)xdr_stream_decode_string_dup(9)xdr_stream_decode_opaque_auth(9)xdr_stream_encode_opaque_auth(9)
like, that's the whole group chat and every single one of them has their own manpage. go say hi π
ok that's the whole page bestie, no filler, no skipped sections, we ate and left zero crumbs π
this cutie lives under ./net/sunrpc, dated October 2026, and she answers to xdr_inline_pages(9) β mwah, periodt π
π
π¦ 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