xdr_stream_encode_be32(9)
okay so you found the xdr_stream_encode_be32(9) page, and itβs straight outta the Kernel API Manual π this one is all about encoding a big-endian 32-bit integer, and itβs lowkey iconic.
π NAME π
xdr_stream_encode_be32 β encode a big-endian 32-bit integer β¨ periodt.
π§ SYNOPSIS π§
hereβs the exact signature, bestie β no cap, keep it character for character:
ssize_t xdr_stream_encode_be32 (struct xdr_stream *xdr , __be32 n );
πΈ ARGUMENTS πΈ
xdrβ this is your pointer to anxdr_streamπ«nβ the integer you wanna encode π
π RETURN π
On success? it returns the length in bytes of XDR buffer consumed π. If the XDR buffer overflows? you get -EMSGSIZE π fr fr.
π SEE ALSO π
shoutout to the kernel file ./include/linux/sunrpc/xdr.h and this whole iconique squad π«Ά:
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_present(9)xdr_stream_encode_item_absent(9)xdr_encode_bool(9)xdr_stream_encode_bool(9)xdr_stream_encode_u32(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)
mwah π this pageβs source/version line is ./include/linux/sunrpc, dated October 2026, and itβs literally the xdr_stream_encode_be32(9) page. bye bestie π«Άπ
π¦ 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