relay_stats(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… relay_stats(9) β€” get channel buffer statistics πŸ’…

okay so this little icon is from the Kernel API Manual, and it's literally the β€œget channel buffer statistics” girlie. No cap, she's here to hand you a count. ✨

🌸 NAME 🌸

relay_stats β€” get channel buffer statistics. That's the whole name, bestie; she does exactly what it says on the tin. πŸ’–

✨ SYNOPSIS ✨

size_t relay_stats (struct rchan *chan , int flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • chan β€” the channel. Like, the actual struct rchan * you're asking about; that's the main character here. πŸ‘‘
  • flags β€” select particular information to get. This is your β€œwhich info tho?” selector, fr fr.

πŸ’– DESCRIPTION πŸ’–

Returns the count of certain field that caller specifies. So you pass in the channel and those flags, and she gives you back the count for whichever field the caller picked. That's it β€” short, sweet, and lowkey iconic. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./kernel/relay.c β€” go peek at the source if you want the full lore. πŸ‘€

the whole squad:


mwah πŸ’‹ this page lives in ./kernel, it's dated October 2026, and it's relay_stats(9) β€” bye bestie, go get those stats and slay πŸ«ΆπŸ’–

πŸ“¦ where this page comes from