xdr_stream_decode_bool(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ xdr_stream_decode_bool(9) β€” the Kernel API Manual page, bestie edition ✨

Okay so welcome to xdr_stream_decode_bool(9) from the Kernel API Manual β€” this is the little function that literally decodes a boolean, and yes, it's giving tiny-but-iconic πŸ’….


πŸ’– NAME πŸ’–

xdr_stream_decode_bool β€” decode a boolean. That's the whole assignment, no cap.


🌸 SYNOPSIS 🌸

ssize_t xdr_stream_decode_bool (struct xdr_stream *xdr , __u32 *ptr );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • xdr β€” pointer to xdr_stream (the stream in question, main character energy fr).
  • ptr β€” pointer to a u32 in which to store the result. That's where the decoded bool lands, bestie.

πŸŽ€ RETURN πŸŽ€

  • 0 on success ✨
  • -EBADMSG on XDR buffer overflow 😭
Like, if the XDR buffer overflows, it does not slay β€” it hits you with -EBADMSG.

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/sunrpc/xdr.h β€” plus the whole friend group:


Source/version corner 🫢: ./include/linux/sunrpc, dated October 2026, and it's the xdr_stream_decode_bool(9) page. Obsessed. Periodt. πŸ’‹πŸŽ€

πŸ“¦ where this page comes from