xdr_init_encode_pages(9)
π xdr_init_encode_pages π
ok so this is a page straight out of the Kernel API Manual (section 9, the kernel-API girlies), and bestie, we are talking about xdr_init_encode_pages β the glow-up ritual that gets an xdr_stream all set up and ready to encode stuff into pages. yes, pages. we love a page-based moment. π¦
β¨ NAME β¨
xdr_init_encode_pages β lowkey the "get ready with me" of XDR encoding: it initializes an xdr_stream for encoding into pages π
π« SYNOPSIS π«
void xdr_init_encode_pages (struct xdr_stream *xdr , struct xdr_buf *buf
);
π ARGUMENTS π
xdrβ pointer to anxdr_streamstruct. that's the little stream baddie you're about to set up β¨bufβ pointer to the XDR buffer into which to encode data. it's literally the destination, the main character, the place your data is going π«Ά
i mean that's it. two pointers. she's simple, she's effective, she's iconic. π
π SEE ALSO π
bestie this is the part where you meet the whole friend group π every one of these lives in the kernel file ./net/sunrpc/xdr.c β go say hi:
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)xdr_inline_pages(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_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)
ngl the whole list is giving "read the source, bestie" energy, so yeah β ./net/sunrpc, that's the home base, iykyk πβ¨
okay and that's the whole page!! she's short, she's sweet, and she's brought to you by the folks at ./net/sunrpc, dated October 2026 β go forth and encode those pages, queen ππ
π¦ 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