xdr_stream_pos(9)
β¨ xdr_stream_pos(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one's a tiny little function in the kernel's XDR corner and honestly it's giving "short but essential" β let's get into it π
πΈ NAME πΈ
xdr_stream_pos β returns the current offset from the start of the xdr_stream π¦
like, literally just "where are we right now" energy. main character position-tracking vibes β¨
π§ SYNOPSIS π§
unsigned int xdr_stream_pos (const struct xdr_stream *xdr );
no cap, that's the whole signature π note the const β she's not touching your stream, she's just looking π
π ARGUMENTS π
xdrβ pointer tostruct xdr_streamπ«Ά that's the stream whose position we're peeking at, iykyk
π₯ SEE ALSO π₯
Kernel file ./net/sunrpc/xdr.c β and omg the friend group here is huge, she knows everybody at the party ππ:
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_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)
bestie reminder: this page is from the kernel source tree at ./net/sunrpc β that's the version/source tag right there π«Ά so if you're citing her, that's where she lives π
and that's the whole page, we ate and left no crumbs ππ slay, go measure some offsets, periodt β
β with love, your favorite kernel-source folder, ./net/sunrpc, dated October 2026 πβ¨
π¦ 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