xdr_finish_decode(9)
π xdr_finish_decode(9) β from the Kernel API Manual, bestie π
Okay so like, welcome to the <pink>Kernel API Manual</pink> β¨ and today's main character is xdr_finish_decode β yes it's a <purple>(9)</purple> page, that's the kernel section, iykyk π§
πΈ NAME πΈ
xdr_finish_decode β the little cleanup crew that tidies up your xdr_stream after you've decoded your data π«§β¨
Literal vibe: you decoded stuff, now you're done, and somebody's gotta put the furniture back. That somebody is this function. <mint>obsessed.</mint>
π¦ SYNOPSIS π¦
void xdr_finish_decode (struct xdr_stream *xdr );
That's it. That's the whole signature. <cyan>void</cyan> return, one arg, no drama π
π ARGUMENTS π
xdrβ pointer to<lavender>xdr_stream</lavender>struct π₯ Yes bestie, just a pointer. That's the whole ask. Hand me the stream and I'll handle the rest β¨
π SEE ALSO π
Okay so this is the part where the page absolutely <hotpink>ATE</hotpink> β the kernel file <yellow>./net/sunrpc/xdr.c</yellow> is like the group chat headquarters and literally every sibling function is tagged in here ππ Behold, the full friend list, no cap, every single one:
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_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_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)
Note bestie: those leading-underscore ones (_shift_data_left_pages,_shift_data_right_pages,_copy_to_pages,_copy_from_pages) and the double-underscore__xdr_commit_encodeare written<red>exactly</red>like that β copy them character for character, don't "clean them up" π
<rainbow>and that's the whole page, periodt π</rainbow>
Signed off with love from <purple>./net/sunrpc</purple> π, dated <peach>October 2026</peach> π β xoxo, your resident kernel-fluent bestie, slay π
β¨π¦
π¦ 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