relay_stats(9)
π
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 actualstruct 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:
relay_mmap_prepare_buf(9)relay_alloc_buf(9)relay_create_buf(9)relay_destroy_channel(9)relay_destroy_buf(9)relay_remove_buf(9)relay_buf_empty(9)relay_buf_full(9)wakeup_readers(9)__relay_reset(9)relay_reset(9)relay_close_buf(9)relay_open(9)relay_switch_subbuf(9)relay_subbufs_consumed(9)relay_close(9)relay_flush(9)relay_file_open(9)relay_file_mmap_prepare(9)relay_file_poll(9)relay_file_release(9)relay_file_read_subbuf_avail(9)relay_file_read_start_pos(9)relay_file_read_end_pos(9)
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
- 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