xdr_stream_e...item_present(9)
β¨ xdr_stream_encode_item_present(9) β¨
okay bestie, so this is a page from the Kernel API Manual and it's literally all about one tiny little function that goes by xdr_stream_encode_item_present. yes, that's a mouthful, we're gonna get through it together π
πΈ NAME πΈ
xdr_stream_encode_item_present β the girl whose whole job is encoding a "present" list item. that's it. that's the gig. slay π
π SYNOPSIS π
ssize_t xdr_stream_encode_item_present (struct xdr_stream *xdr );
π¦ ARGUMENTS π¦
xdrβ a pointer toxdr_stream. yeah, the whole stream. she needs it. don't ask questions, just hand it over π«Ά
β RETURN β
On success, she returns the length in bytes of XDR buffer that got consumed. iconic behavior, honestly.
And if the XDR buffer overflows? -EMSGSIZE π that's the error code, no cap. buffer said "i'm full, bestie" and honestly, same.
π₯ SEE ALSO π₯
okay so this is the part where she tags all her mutuals. there are... a lot of them. but every single one matters, periodt:
- Kernel file
./include/linux/sunrpc/xdr.h xdr_set_scratch_buffer(9)xdr_set_scratch_folio(9)xdr_reset_scratch_buffer(9)xdr_commit_encode(9)xdr_stream_remaining(9)xdr_align_size(9)xdr_pad_size(9)xdr_stream_encode_item_absent(9)xdr_encode_bool(9)xdr_stream_encode_bool(9)xdr_stream_encode_u32(9)xdr_stream_encode_be32(9)xdr_stream_encode_u64(9)xdr_stream_encode_opaque_inline(9)xdr_stream_encode_opaque_fixed(9)xdr_stream_encode_opaque(9)xdr_stream_encode_uint32_array(9)xdr_item_is_absent(9)xdr_item_is_present(9)xdr_stream_decode_bool(9)xdr_stream_decode_u32(9)xdr_stream_decode_be32(9)xdr_stream_decode_u64(9)xdr_stream_decode_opaque_fixed(9)xdr_stream_decode_opaque_inline(9)xdr_stream_decode_uint32_array(9)
like i said. a LOT of mutuals. but she knows all of them by name and you should too π
sign-off π
this whole thing lives in ./include/linux/sunrpc and the version/date on the door is October 2026. that's the tea, bestie. go forth and encode your "present" list items, ily πβ¨
π¦ 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