xdr_stream_e...item_present(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 to xdr_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:

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