xdr_shrink_bufhead(9)
π NAME π
This is xdr_shrink_bufhead from the Kernel API Manual, section (9), bestie. The name line is literally xdr_shrink_bufhead - with nothing after the dash β thatβs it, thatβs the whole name entry, and honestly? iconic minimalism. π
β¨ SYNOPSIS β¨
Hereβs the exact signature, no edits, no vibes-only paraphrase:
unsigned int xdr_shrink_bufhead (struct xdr_buf *buf , unsigned int len
);
π ARGUMENTS π
bufβ anxdr_buf, aka the buffer weβre working with.lenβ the new length ofbuf->head[0]. Thatβs the assignment, bestie.
π¦ DESCRIPTION π¦
Okay so this function shrinks the XDR bufferβs header kvec, buf->head[0]. It sets it to moved into the inlined pages and/or the tail. That βsetting it to moved intoβ phrasing is literally what the page says β donβt come for me, Iβm just delivering the facts with better lighting. πβ¨
π₯ SEE ALSO π₯
Kernel file: ./net/sunrpc/xdr.c β yes, that exact path, no cap.
The whole squad of (9) references, all present and accounted for:
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_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)
and thatβs the page, bestie π«Άπ β source/version ./net/sunrpc, dated October 2026, from the Kernel API Manual.
π¦ 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